Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "propagate", | ||
"description": "Propagate events", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author" : "Pedro Teixeira <pedro.teixeira@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors" : [ |
# propagate | ||
Propagate events from one event emitter into anoter | ||
Propagate events from one event emitter into another | ||
@@ -23,2 +23,16 @@ ## Install | ||
ee1.emit('event', 'a', 'b'); | ||
``` | ||
``` | ||
## Unpropagate | ||
You can unpropagate by ending the propagation like this: | ||
```javascript | ||
var ee1 = new EventEmitter(); | ||
var ee2 = new EventEmitter(); | ||
var p = propagate(ee1, ee2); | ||
// ... | ||
p.end(); | ||
``` |
2691
38