dom-event-dispatch

1.0.0 • Public • Published

dom-event-dispatch

Install

npm install dom-event-dispatch

Usage

import { dispatchEvent } from 'dom-event-dispatch';
document.body.addEventListener('bla', e=>{
    console.log('totally blad');
});
 
dispatchEvent(document.body, 'bla');
 

About

This module supports ie9+, and all other browsers. Use it to fire the Event() constructor.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i dom-event-dispatch

      Weekly Downloads

      1

      Version

      1.0.0

      License

      MIT

      Last publish

      Collaborators

      • hollowdoor