batch
Advanced tools
Comparing version 0.0.2 to 0.0.3
0.0.3 / 2012-06-02 | ||
================== | ||
* Callback results should be in the order of the queued functions. | ||
0.0.2 / 2012-02-12 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -48,7 +48,7 @@ | ||
this.fns.forEach(function(fn){ | ||
this.fns.forEach(function(fn, index){ | ||
fn(function(err, res){ | ||
if (done) return; | ||
if (err) return done = true, cb(err); | ||
results.push(res); | ||
results[index] = res; | ||
--pending || cb(null, results); | ||
@@ -55,0 +55,0 @@ }); |
{ | ||
"name": "batch" | ||
, "version": "0.0.2" | ||
, "version": "0.0.3" | ||
, "description": "Simple async batch" | ||
@@ -5,0 +5,0 @@ , "keywords": [] |
2944
7
46