Skip to content

shhac/CustomEventTarget

Repository files navigation

CustomEventTarget

Implementing the EventTarget interface so it can be used by constructed objects/classes extending CustomEventTarget Designing this to work in browser and in node.

TODO

  • Construcatable inheritance from EventTarget
  • addEventListener
  • removeEventListener
  • dispatchEvent
    • Working with custom-crafted events which pass a eventOptions.shouldHandle test
    • Handlers with option "once" remove themselves consistently
    • Return value reflects event.preventDefault invocation
    • event.stopPropagation (no bubbling, if capture phase, no non-capture phase)
    • event.stopImmediatePropagation (no further handlers invoked)
  • CustomEvent
  • Event bubbling; being able to set a parent/child relation between two CustomEventTarget objects

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published