Implementing the EventTarget interface so it can be used by constructed objects/classes extending CustomEventTarget
Designing this to work in browser and in node.
- 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)
- Working with custom-crafted events which pass a
- CustomEvent
- Event bubbling; being able to set a parent/child relation between two CustomEventTarget objects