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

bug of unbinding swipeleft/swiperight handler #7351

Closed
egana opened this Issue Apr 27, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@egana

egana commented Apr 27, 2014

When I bind both 'swipeleft' and 'swiperight' handler to the same element and then unbind the 'swiperight' handler, 'swipeleft' event handler is no longer fired.

Test:
http://jsbin.com/acIRUBo/66/edit
In the above test page, first 'swipeleft' and 'swiperight' handler is bound to #target element.
By the clicking the button, 'swiperight' handler is unbound. Since 'swipeleft' handler is not unbound, you expect that 'swipeleft' handler is still fired, but actually it's not fired anymore.

In fact, at the following line, when teardown 'swiperight' event handler, all the 'swipe' handler is unbound.

$( this ).unbind( sourceEvent );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment