Commit 1b7e6c85 1b7e6c85ed04b3df870530b7fd1bf6cc7620e9c0 by Nicolas Perriault

fixed onStepTimeout callback couldn't be called properly

1 parent d7d236bd
...@@ -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 {
......