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
Destroy Method #33
Comments
I haven't made that currently, but my intentions are to make it happen soon, since it's not that complex to do. |
Thank you! Looking forward to it :) |
1+ |
@maimairel I think that post and it's accepted answer pretty much sums up that it's enough to set all the instances to |
@abpetkov Yes, setting it to null or undefined will make the object a candidate for garbage collection, but we need a destroy method to be sure that all event handlers bound by the plugin are removed, otherwise it won't be garbage collected. |
@maimairel I will make a new release until the end of the week, but I've pushed some changes to the master branch. Some of them include the |
Released in 0.8.0 |
Hi, great plugin :)
What I'm missing right now is the functionality to destroy a switchery instance. Is it enough to just remove the DOM element, or does such a functionality already exists?
Thank you!
The text was updated successfully, but these errors were encountered: