Skip to content

Fix callback called two times#595

Merged
cloudhead merged 1 commit intoless:masterfrom
hokaccha:fix_parser_error
Feb 1, 2012
Merged

Fix callback called two times#595
cloudhead merged 1 commit intoless:masterfrom
hokaccha:fix_parser_error

Conversation

@hokaccha
Copy link
Copy Markdown
Contributor

Simple case is this.

var less = require('less');
var parser = new less.Parser;
parser.parse('foo { width: 10px', function(err, tree) {
  // called two times
});

This return can not end parse function.

chunks = (function (chunks) {
    ...
    return callback(...)
})([[]]);

Fix it.

cloudhead added a commit that referenced this pull request Feb 1, 2012
@cloudhead cloudhead merged commit 222f5e6 into less:master Feb 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants