[FIX] tour: check if the tour is already finish before check next step
This commit is contained in:
parent
fd0e0323ba
commit
ffe8590183
|
@ -446,12 +446,14 @@ var Tour = {
|
|||
|
||||
if (next) {
|
||||
setTimeout(function () {
|
||||
if (Tour.getState()) {
|
||||
Tour.waitNextStep();
|
||||
if (state.mode === "test") {
|
||||
setTimeout(function(){
|
||||
Tour.autoNextStep(state.tour, step);
|
||||
}, Tour.defaultDelay);
|
||||
}
|
||||
}
|
||||
if (state.mode === "test") {
|
||||
setTimeout(function(){
|
||||
Tour.autoNextStep(state.tour, step);
|
||||
}, Tour.defaultDelay);
|
||||
}
|
||||
}, next.wait || 0);
|
||||
} else {
|
||||
setTimeout(function(){
|
||||
|
|
Loading…
Reference in New Issue