Skip to content

Instantly share code, notes, and snippets.

@shanejonas
shanejonas / events.coffee
Created August 2, 2011 23:32
Working with backbone events in coffeescript
# Heres how I've been working with arbitrary backbone events:
#
# Obviously in Backbone you can use events elsewhere as well, for
# more info see the docs here: http://documentcloud.github.com/backbone/
# useful for running this with node.. else browser this with the right includes.
# includes
if typeof window is 'undefined'
# npm install -g backbone
# gives you: