bigSlide.js
bigSlide.js copied to clipboard
How to use the destroy() function?
Hi there,
First: Awesome simple plugin. Love it, thanks for making this available :-) I just have one question: I saw that the Plugin has a destroy() function built it which reverts all changes made by it. How do I use this function im my normal jQuery code to enable/disable the behaviour in specific situations?
Many thanks for your help.
Best, Till
Hi,
Here is how you can do it: $('.menu-toggle').bigSlide().bigSlideAPI.destroy();
where $('.menu-toggle') is the selector have bigSlide applied.
Cheers!
Hi,
Thank you very much for the answer. That worked perfectly! :-) I was even able to shorten it a bit more via $('.menu-toggle').bigSlideAPI.destroy(); (= leaving out the bigSlide() part...)
Best, Till
dineshbkn [email protected] schrieb am Do., 22. März 2018 um 10:31 Uhr:
Hi,
Here is how you can do it: $('.menu-toggle').bigSlide().bigSlideAPI.destroy();
where $('.menu-toggle') is the selector have bigSlide applied.
Cheers!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ascott1/bigSlide.js/issues/90#issuecomment-375232764, or mute the thread https://github.com/notifications/unsubscribe-auth/AEHFmmCpz0PJbmRtiNl4itZmGV_F62F_ks5tg29YgaJpZM4QzuJ6 .