Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 904 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 904 Bytes

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