1.1.2 • Published 6 years ago

htz-dispatch-event v1.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Custom Event Dispatcher

A convenience utility for firing a synthesized event.

Uses the CustomEvent constructor, which requires polyfill (provided by polyfill.io) in IE.

The function takes three arguments:

  • target: An HTMLElement, which will be used to dispatch the event and determines which event listeners will be invoked;
  • type: A string representing the name of the dispatched event;
  • detail: An optional value, of any type, which is an event-dependent value associated with the event.
1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

7 years ago