Skip to content

Support handleEvent / DOM method names #31

@bcomnes

Description

@bcomnes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions