Skip to content

Haaretz/htz-dispatch-event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A utility module for firing synthesized events

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published