Honk! Events!
A super-small events package for adding basic events to instances. There's a simple mechanism to cleanup bindings for objects that are about to be destroyed (so they don't hang around un-GC-able forever). It's reccomended.
Usage
mixinEvents = require 'honk-events' : -> mixinEventsthis : @trigger 'say'name : mixinEventsthis @on producer'say' consolelog "Producer said '!'" : -> consolelog 'Goodbye cruel world' producer = consumer = producersay 'Hello!'# >>> Producer said 'Hello!!' # Clean up any events the consumer has accumulated consumerdestroy# >>> Goodbye curel world