backbone.mousetrap
Bring Backbone.js and Mousetrap together nicely for declarative keyboard event bindings on Backbone views.
- Nice declarative syntax
- Allows you to bind different keyboard events to different views
- Keyboard events are unbound automatically when the view's
remove()
is called
var View = BackboneView;
MIT LICENSE
Thanks to our friends at Codecademy for showing us the declarative light with backbone.declarative.