response function should be at front of params

This commit is contained in:
Bill Casarin 2010-12-28 09:49:57 -05:00
parent 81acc105c6
commit d3fa7ceba2

View File

@ -196,7 +196,7 @@ Server.prototype.handlePOST = function(req, res) {
// Try to call the method, but intercept errors and call our
// onFailure handler.
var method = self.functions[decoded.method];
var args = decoded.params.push(function(resp) {
var args = decoded.params.unshift(function(resp) {
onSuccess(resp);
});