Commit 1b7e6c85 1b7e6c85ed04b3df870530b7fd1bf6cc7620e9c0 by Nicolas Perriault

fixed onStepTimeout callback couldn't be called properly

1 parent d7d236bd
......@@ -647,7 +647,7 @@
if (isType(this.options.stepTimeout, "number") && this.options.stepTimeout > 0) {
var stepTimeoutCheckInterval = setInterval(function(self, start, stepNum) {
if (new Date().getTime() - start > self.options.stepTimeout) {
if (self.step == stepNum + 1) {
if (self.step == stepNum) {
if (isType(self.options.onStepTimeout, "function")) {
self.options.onStepTimeout.call(self, self);
} else {
......