evie
v1.0.0-alpha-02
Published
EventEmitter-style events with event-bubbling
Downloads
17
Readme
Evie
Evie provides an EventEmtter-style interface, but provides support for event-bubbling, wild-card events, object-literal handler specs, and doesn't require a handler for an error
event.
Evie = require "evie"
count = 0
parent = Evie.create()
parent.on bam: -> count++
child = Evie.create()
child.forward parent
child.emit "bam"
child.emit "*"
assert count == 2