Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the destroy() function? #90

Open
t1ll opened this issue Dec 3, 2017 · 2 comments
Open

How to use the destroy() function? #90

t1ll opened this issue Dec 3, 2017 · 2 comments

Comments

@t1ll
Copy link

t1ll commented Dec 3, 2017

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

@dineshbkn
Copy link

Hi,

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

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

Cheers!

@t1ll
Copy link
Author

t1ll commented Mar 23, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants