Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Last call to next() will pass arguments to callback

  • Loading branch information...
commit 9bf6910fb4e6b851e23ac0455c2c02d5f6acff18 1 parent 12dd098
Tim authored June 20, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/parallel/index.js
2  lib/parallel/index.js
@@ -84,7 +84,7 @@ Sequence.prototype.run = function run(callback) {
84 84
   var next = function next() {
85 85
     var task = tasks.shift();
86 86
     if (typeof task !== 'function') {
87  
-      return callback();
  87
+      return callback.apply(this, arguments);
88 88
     }
89 89
     var args = Array.prototype.slice.call(arguments);
90 90
     args.unshift(next);

0 notes on commit 9bf6910

Please sign in to comment.
Something went wrong with that request. Please try again.