Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support handleEvent / DOM method names #31

Open
bcomnes opened this issue May 13, 2018 · 0 comments
Open

Support handleEvent / DOM method names #31

bcomnes opened this issue May 13, 2018 · 0 comments

Comments

@bcomnes
Copy link
Contributor

bcomnes commented May 13, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant