remove `next` in callback for now

revisit mounting later
master
Jonathan Ong 2013-12-19 23:13:37 -08:00
parent 38d5bad4d1
commit 61d437d746
1 changed files with 3 additions and 4 deletions

View File

@ -97,11 +97,10 @@ app.callback = function(){
var fn = co(gen);
var self = this;
return function(req, res, next){
return function(req, res){
var ctx = self.createContext(req, res);
next = next || ctx.onerror;
ctx.onSocketError(next);
fn.call(ctx, next);
ctx.onSocketError(ctx.onerror);
fn.call(ctx, ctx.onerror);
}
};