1.0.0-alpha-02 • Published 9 years ago

evie v1.0.0-alpha-02

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

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
1.0.0-alpha-02

9 years ago

0.2.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago