npm

Need private packages and team management tools?Check out npm Orgs. »

pavex-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 pavex-js-eventtarget

Downloadsweekly downloads

0

version

0.0.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability