Multiple namespaces
webbedspace opened this issue · 2 comments
webbedspace commented
This library currently doesn't support multiple namespaces - for instance, something like on(window, "mousemove.myUI.myModule" will create a namespace called "myUI.myModule", preventing me from calling
off(window, 'mousemove.myUI')` to remove all events with the "myUI" namespace and any additional namespaces. This was a common feature of Zepto/jQuery's event API.
Is this planned to be added at some point?
camsong commented
Namespace is already supported, see the description under title 'DOM events manager with namespace support'
webbedspace commented
This only supports one namespace per handler, though - I want to know if I can put a single event handler into multiple namespaces.