Skip to content
Browse files

Return expand value from default handler

as shown by @rikkertkoppes in issue #3
close issue #3
  • Loading branch information...
1 parent 47278c3 commit bbfb7804f58246187a262cd27c546b9a5fc560fc @Floby committed Aug 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Parser.js
View
2 lib/Parser.js
@@ -67,7 +67,7 @@ Parser.prototype.defaultHandler = function defaultHandler(h) {
assert.equal(typeof h, 'function', "a handler should be a function");
function DEFAULT(token, type, next) {
next(DEFAULT);
- h.apply(this, arguments);
+ return h.apply(this, arguments);
}
this._queue.push(DEFAULT);
this._haveDefault = true;

0 comments on commit bbfb780

Please sign in to comment.
Something went wrong with that request. Please try again.