Open blanchardjeremy opened 11 years ago
It may be more readable but the complexity is higher since your callback has to get run at every step, where the pauseAfter allows you to stop at specific points without having to run an if each time. (although the if gets run in the code anyway, so I guess its a moot point)
Your code doesn't seem to be really pausing the tour though. It would run exactly the same if you just set the 'timer' setting to 800, and removed your pause and resume calls from your postStepCallback.
I'd really like to do something like this:
The code is far more readable that way. Could this be implemented without too much trouble? I'm not familiar enough with the codebase to send a pull request.