fixed onStepTimeout callback couldn't be called properly
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -647,7 +647,7 @@ | ... | @@ -647,7 +647,7 @@ |
647 | if (isType(this.options.stepTimeout, "number") && this.options.stepTimeout > 0) { | 647 | if (isType(this.options.stepTimeout, "number") && this.options.stepTimeout > 0) { |
648 | var stepTimeoutCheckInterval = setInterval(function(self, start, stepNum) { | 648 | var stepTimeoutCheckInterval = setInterval(function(self, start, stepNum) { |
649 | if (new Date().getTime() - start > self.options.stepTimeout) { | 649 | if (new Date().getTime() - start > self.options.stepTimeout) { |
650 | if (self.step == stepNum + 1) { | 650 | if (self.step == stepNum) { |
651 | if (isType(self.options.onStepTimeout, "function")) { | 651 | if (isType(self.options.onStepTimeout, "function")) { |
652 | self.options.onStepTimeout.call(self, self); | 652 | self.options.onStepTimeout.call(self, self); |
653 | } else { | 653 | } else { | ... | ... |
-
Please register or sign in to post a comment