Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix callback called two times #595

Merged
merged 1 commit into from
Feb 1, 2012
Merged

Conversation

hokaccha
Copy link
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.

None yet

2 participants