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

off() with no arguments #14

Open
robbue opened this issue Apr 22, 2014 · 0 comments
Open

off() with no arguments #14

robbue opened this issue Apr 22, 2014 · 0 comments

Comments

@robbue
Copy link

robbue commented Apr 22, 2014

From what I have tested its not possible to use off() without any arguments?

$(element).hammer().off(); // not possible
$(element).hammer().off('tap'); // possible

I would like the off to work like explained on jQuery documentation:
Calling .off() with no arguments removes all handlers attached to the elements. Specific event handlers can be removed on elements by providing combinations of event names, namespaces, selectors, or handler function names. When multiple filtering arguments are given, all of the arguments provided must match for the event handler to be removed.

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

No branches or pull requests

1 participant