Skip to content

Commit

Permalink
Rename self to step
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoguchi committed Jul 2, 2013
1 parent dbf328f commit decfcda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/step.js
Expand Up @@ -20,11 +20,11 @@ Step.prototype.exec = function (seq) {
var block = this.block;
var _module = this.module;
var stepName = this.name;
var self = this;
var step = this;
function errorCallback (error) {
// Ensure that seq.values are always passed back to moduleErrback
if (self.errback) {
self.errback(error, seq.values);
if (step.errback) {
step.errback(error, seq.values);
} else if (_module._moduleErrback) {
_module._moduleErrback(error, seq.values);
} else {
Expand Down

0 comments on commit decfcda

Please sign in to comment.