bigSlide.js icon indicating copy to clipboard operation
bigSlide.js copied to clipboard

How to use the destroy() function?

Open t1ll opened this issue 7 years ago • 2 comments

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

t1ll avatar Dec 03 '17 13:12 t1ll

Hi,

Here is how you can do it: $('.menu-toggle').bigSlide().bigSlideAPI.destroy();

where $('.menu-toggle') is the selector have bigSlide applied.

Cheers!

dineshbkn avatar Mar 22 '18 09:03 dineshbkn

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 .

t1ll avatar Mar 23 '18 07:03 t1ll