fortesinformatica / Sideshow

Sideshow is a powerful javascript library which aims to reduce your user's learning curve by providing a way to create step-by-step interactive tours. Explain the features of your application, control your end-user's interaction with your UI, emphasize what you're explaining in each step by masking it. Just think! The sky is the limit!
http://fortesinformatica.github.io/Sideshow
Apache License 2.0
86 stars 31 forks source link

When Sideshow is closed, the current step's afterStep listener is not called #20

Open coastwise opened 8 years ago

coastwise commented 8 years ago

This may be by design, but it caught me off guard.

I set up some DOM state in the beforeStep and need it to be torn down for the site to function properly again when it is finished. It works great as long as the user completes the step / wizard. If they hit the Sideshow close button during that step however, the afterStep listener isn't called and my teardown doesn't happen.

If this is by design, please let me know the best way I should clean up after my step.

Thanks!

PS: My actual use-case is injecting an embedded youtube video that is the subject of the step. If they close out of sideshow, the element remains while it should have been removed as part of the tour.