Skip to content
Myr

Changed: removed .call(self) for route callbacks

Before adoption: this commit came in with the history the project adopted, so no landing records it.

not sure why we had this, ive never even used it and the tests dont cover it, and its slower

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent ed9fcde · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/router/index.js+1 added-1 removed
271 unmodified lines
272 };273274 // invoke middleware callback275 function done() {276 route.callback.call(self, req, res, function(err){276 route.callback(req, res, function(err){277 if (err) return next(err);278 pass(req._route_index + 1);279 });280 }
130 unmodified lines