oneuijs/oui-dom-events

Multiple namespaces

webbedspace opened this issue · 2 comments

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 callingoff(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?

Namespace is already supported, see the description under title 'DOM events manager with namespace support'

This only supports one namespace per handler, though - I want to know if I can put a single event handler into multiple namespaces.