Crafty.bind
public Number bind(String eventName, Function callback)
- eventName
- Name of the event to bind to
- callback
- Method to execute upon event triggered
Binds to a global event. Method will be executed when Crafty.trigger is used
with the event name.

@craftyjs
#crafty@freenode.net
google groups
louis@craftyjs.com
github