off() with no arguments
Opened this issue · 0 comments
robbue commented
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.