-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Can't unbind hammer from element (jquery) still not working #538
Comments
calling if you use the jquery hammer plugin you can simply call |
Dear Lukas, Normally i would unbind events from an instance. Some how I am not able to do this with Hammer. See example http://jsfiddle.net/LSrgh/76/. What am I doing wrong? With kind regards,
On 17 apr. 2014 (16), at 21:32, Lukas [email protected] wrote:
|
I asked about this issue on the jQuery plugin repo to: hammerjs/jquery.hammer.js#14 From jQuery docs:
This dosen't seem to happen with hammer |
This doesn't work. This is a big issue considering that this is designed for mobile devices. Essentially Hammer.js leaks memory. Even after you remove the item, the event will not be unbound and will cause a memory leak. |
@jdinard is this still true? |
I've updated you jsBin example from above to work.
|
Working jsbin for how to not leak memory: http://jsfiddle.net/LSrgh/141/ |
This is still problem as http://jsfiddle.net/LSrgh/65/ shows. Any suggestions?
The text was updated successfully, but these errors were encountered: