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

Plugin is now destroyable. #19

Merged
merged 2 commits into from
Mar 25, 2014

Conversation

lele85
Copy link
Contributor

@lele85 lele85 commented Mar 25, 2014

I'm working on an angularjs application, Correct handling of global events is crucial to prevent memory leaks. I've added a method to handle document events unsubscription leveraging jQuery scoped events and a unique id manatained at plugin level.

It can be called using:

$(".selector").TouchSpin("destroy");

istvan-ujjmeszaros added a commit that referenced this pull request Mar 25, 2014
Plugin is now destroyable.
@istvan-ujjmeszaros istvan-ujjmeszaros merged commit 037166a into istvan-ujjmeszaros:master Mar 25, 2014
@istvan-ujjmeszaros
Copy link
Owner

Thanks @lele85!

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

Successfully merging this pull request may close these issues.

2 participants