npm install weakeeshell
npm i weakee -S
#or on the frontend
jspm i npm:weakee
`$3
`javascript
import Emitter from 'weakee'
class UserClass extends Emitter {
constructor() {
super()
}
}var inst = new UserClass()
inst.emit('myEvent', whatever, params)
inst.on('myEvent', (whatever, params)=>{
//runs until you call .off()
})
inst.once('myEvent', (whatever, params)=>{
//runs once
})
inst.off('myEvent', handlerFunction) //removes the even handler
``