Package Exports
- propagate
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 (propagate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
propagate
Propagate events from one event emitter into another
Install
$ npm install propagate
User
var ee1 = new EventEmitter();
var ee2 = new EventEmitter();
propagate(ee1, ee2);
ee2.on('event', function(a, b) {
console.log('got propagated event', a, b);
});
ee1.emit('event', 'a', 'b');
Unpropagate
You can unpropagate by ending the propagation like this:
var ee1 = new EventEmitter();
var ee2 = new EventEmitter();
var p = propagate(ee1, ee2);
// ...
p.end();