Comparing version 0.1.2 to 0.1.3
@@ -107,18 +107,20 @@ /* | ||
for(var i = 0; i < plugins.length; i++) { | ||
args[args.length-1] = function(i, err, result) { | ||
if(i >= currentPos) return; // ignore | ||
done.push(i); | ||
if(err || result) { | ||
currentPos = i + 1; | ||
done = done.filter(function(item) { | ||
return item <= i; | ||
}); | ||
currentError = err; | ||
currentResult = result; | ||
} | ||
if(done.length == currentPos) { | ||
callback(currentError, currentResult); | ||
currentPos = 0; | ||
} | ||
}.bind(this, i); | ||
args[args.length-1] = (function(i) { | ||
return function(err, result) { | ||
if(i >= currentPos) return; // ignore | ||
done.push(i); | ||
if(err || result) { | ||
currentPos = i + 1; | ||
done = done.filter(function(item) { | ||
return item <= i; | ||
}); | ||
currentError = err; | ||
currentResult = result; | ||
} | ||
if(done.length == currentPos) { | ||
callback(currentError, currentResult); | ||
currentPos = 0; | ||
} | ||
}; | ||
}(i)); | ||
plugins[i].apply(this, args); | ||
@@ -125,0 +127,0 @@ } |
{ | ||
"name": "tapable", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "Just a little module for plugins.", |
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
12554
268