documentcloud/backbone — pull request #1085 by gleber (2012-03-09 14:28:43+00:00)
Title: Add basic event.data passing via view.events

This change allow for the following:

```
var ViewClass = Backbone.View.extend({
events: {
'click button.inc_position': 'increment age',
'click button.inc_rank': 'increment rank'
},

increment: function(event) {
var key = event.data;
this.model.set(key, this.model.get(key));
}
});

var view = new ViewClass({ model: new SomeModel({'position': 0, 'rank': 0}) });
```

And other use cases. If you find it useful, I will add tests for it.