twixt-event-target

0.0.3 • Public • Published

twixt-event-target Function

var EventTarget = require("twixt-event-target");

function attachEvent(obj, type, handler) {
    EventTarget(obj).addEventListener(type, handler);
}

fuction emitEvent(obj, type) {
    EventTarget(obj).dispatchEvent(new Event(type));
}

Readme

Keywords

none

Package Sidebar

Install

npm i twixt-event-target

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • rremer