Skip to content

Commit

Permalink
Fixes geddy#373
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Ng committed May 25, 2013
1 parent 8eb0435 commit c28997a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/init/local_app_init.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ exports.init = function (app, next) {
// If the func has a CPS 'next' param defined in the calling
// signature, call it with next as a callback
if (initFunc.length == 1) {
initFunc(next);
initFunc.apply(initScript,[next]);
}
// If it's a sync function with no CPS 'next', just run it
// and go next
else {
initFunc();
initFunc.apply(initScript);
next();
}
}
Expand Down

0 comments on commit c28997a

Please sign in to comment.