npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

js-eventtarget

0.0.4 • Public • Published

publixe-eventtarget

Event target abstract class

 
import EventTarge from 'publixe-eventtarget';
 
class Service extends EventTarget {
    check() {
        this.dispatchEvent('check', {abc: 'ABC'});
    };
};
 
let s = new Service();
let fn1 = (o) => {
    console.log('fn1', o);
};
 
s.addEventListener('check', fn1);
s.check();
 

install

npm i js-eventtarget

Downloadsweekly downloads

0

version

0.0.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability