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

fixed memory leak #81

Closed

Conversation

sszabolcs
Copy link

As I wrote in this issue it is better to register an event handler for multiple events separately than registering it in one call because when unbind is called jquery does not find the event handler because of the comma at the end of the event name.
In the fix I register the event handler for the events separately and so the unbinding in the destroy() method is successful and the leak goes away.

@sszabolcs sszabolcs mentioned this pull request Apr 5, 2017
stefangabos added a commit that referenced this pull request Jul 9, 2017
@stefangabos
Copy link
Owner

This is now fixed by adding the missing unbinding of "touchstart" and fixing the multiple-event-bind bug by removing the unnecessary comma. thanks!

@stefangabos stefangabos closed this Jul 9, 2017
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.

None yet

2 participants