Permalink
Browse files

Replaced bind function with _bind method on invocation.

  • Loading branch information...
1 parent a4758e3 commit 56418b561df449d940d8c2d2327a3bc76bfa296e @bnoguchi committed Apr 5, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/sequence.js
View
@@ -45,7 +45,6 @@ MaterializedSequence.prototype = {
return args;
}, []);
// Apply the step logic
- console.log(this.module);
ret = block.apply(this.module, args);
// Convert return value into a Promise
@@ -86,7 +85,7 @@ MaterializedSequence.prototype = {
// Pipe through the steps
var priorStepPromise = this.applyStep(steps[0]);
for (var i = 1, l = steps.length; i < l; i++) {
- priorStepPromise = bind(priorStepPromise, steps[i]);
+ priorStepPromise = this._bind(priorStepPromise, steps[i]);
}
return priorStepPromise;
}

0 comments on commit 56418b5

Please sign in to comment.