nanobus icon indicating copy to clipboard operation
nanobus copied to clipboard

Support handleEvent / DOM method names

Open bcomnes opened this issue 7 years ago • 0 comments

Was thinking the other day, it would be cool if nanobus supported event listeners that implemented handleEvent so that event listeners can take advantage of the prototype chain.

Also, side thought, would it be worth adding aliases for the other DOM event emitter methods (.addEventListener etc)

I would be interested in doing this, interested in what others think before I do. See https://gist.github.com/bcomnes/8155cc64406bf6c81915c7d06916df89 and https://medium.com/@WebReflection/dom-handleevent-a-cross-platform-standard-since-year-2000-5bf17287fd38 for some reasons why this is an interesting API.

bcomnes avatar May 13 '18 02:05 bcomnes