Comparing version 0.1.1 to 0.1.2
@@ -99,6 +99,15 @@ var line, _context, _running; | ||
line.prototype.run = function(fn) { | ||
var done; | ||
var _this = this; | ||
_context = null; | ||
if (fn) this.add(fn); | ||
if (this.parent) this.add(this.parent.wait(null)); | ||
if (this.parent) { | ||
done = this.parent.wait(); | ||
this.add(function() { | ||
var args; | ||
args = Array.prototype.slice.call(arguments); | ||
args.unshift(null); | ||
return done.apply(_this, args); | ||
}); | ||
} | ||
process.nextTick(function() { | ||
@@ -105,0 +114,0 @@ return _this.next(); |
{ | ||
"name": "line", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Control flow like a boss", | ||
@@ -5,0 +5,0 @@ "keywords": ["ender", "flow", "control", "async"], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16615
9
213