Enhance node's EventEmitter.
$ npm install power-ee
You can see the test cases.
- target(EventEmitter): required
- events(String|Array): required
- callback(Function): optional. Called each time the event of the list emitted.
- target(EventEmitter): required
- events(String|Array): required
- callback(Function): optional. Called each time the event of the list emitted.
Note: The difference between #delegate and #listenTo is that the source ee object will emit the same event as the target just emits.
alias: stopListening
- target(EventEmitter): required
- events(String|Array): optional. If omitted, all the events related will be removed.
MIT