documentcloud/backbone — pull request #815 by zowens (2011-12-25 05:09:55+00:00)
Title: View Event Callbacks as Functions

Sometimes it can be useful to define events in terms of functions instead of simply the name of a function on the view. This pull request basically just allows one to define functions for the callbacks instead of the clunky string.

```javascript
var myView = Backbone.View.extend({
events: {
'click': function() { alert("clicked"); },
'mousedown': this.mouseMove
}
});
```