Package Exports
- eventemitter-promise
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eventemitter-promise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eventemitter-promise
Event Emitter with lazy promise ! (see http://github.com/bios21/superlazypromise)
Installation
Then install it via npm:
$ npm install --save eventemitter-promiseOr via bower:
$ bower install --save eventemitter-promiseExample Usage
Each listener are stored to be fired later on a SuperLazyPromise
| emit\on | event | event.* | event.context | event.context! |
|---|---|---|---|---|
| event | ✓ | ✓ | ✓ | ✓ |
| event.context | ✓ | ✓ | ✓ | |
| event.context! | ✓ | ✓ |
! : Firing an event on strict context (event.context!) is not yet implemented.
const EventEmitter = require('eventemitter-promise');
class Clazz extends EventEmitter {
emit() {
}
on() {
}
}License
ISC License. See the LICENSE file.