Custom Class Event Dispatching in CoffeeScript

Ever use jQuery and think the .bind() and .trigger() APIs are nice? Here is a small class you can use when writing CoffeeScript to quickly implement the observer pattern in your own objects.

For more involved scenarios, consider using a library like RxJS.