bespokejs / bespoke

DIY Presentation Micro-Framework
http://markdalgleish.com/projects/bespoke.js/
MIT License
4.68k stars 443 forks source link

Destroy a Slide Deck #65

Closed LucyintheSkyWithDiamonds closed 7 years ago

LucyintheSkyWithDiamonds commented 8 years ago

Sorry if I am missing something here, but after creating a deck, how do I destroy it?

If not already possible, can you add that as a method or advise how I would go about it? Would removing all the bespoke type classes from the specific area of the DOM suffice?

hsablonniere commented 8 years ago

What's your use case? What do you want to restore?

mojavelinux commented 7 years ago

The destroy method is now available. It fires the destroy event, then unregisters all listeners. If additional functionality is needed, please open a new issue with specifics.