Quick and dirty Event Handler singleton that handles namespacing of events.
At the moment it only handles native events
You will need to run through babel and possibly polyfill yourself, as we do not transpile this for you at all.
How to use:
// works with NodeList, both with one and multiple elementsconst mySingleElement = documentconst myMultipleElements = documentEventHandlerEventHandler// also works with HTMLCollectionsconst myId = documentconst myClasses = documentEventHandlerEventHandler// you can also send in a selector directlyEventHandler
- Make it work with custom events as well
- Handle elements added to DOM at a later time