Skip to content

Commit

Permalink
Allow multiple results
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Mar 18, 2010
1 parent 186c28c commit 128e5e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions step.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ function Step() {
var counter;
var results;

function next(result) {
function next() {
if (steps.length <= 0) { return; }
var fn = steps.shift();
counter = 0;
results = [];
fn.apply(next, result);
fn.apply(next, arguments);
}
next.parallel = function () {
counter++;
Expand Down

0 comments on commit 128e5e0

Please sign in to comment.