documentcloud/backbone — pull request #2484 by simsalabim (2013-04-15 10:02:45+00:00)
Title: Multiple whitespace-separated callbacks in delegateEvents for the View

Hi all,

Sometimes you have a number of elements on a page which should react on events by mixing already defined callbacks. In order not to create redundant aggregative methods I suggest to use following approach:

```coffeescript
class ContentView extends Backbone.View

events:
'click .decorate' : 'decorate'
'click .reorder' : 'reorder'
'click .mix-it' : 'decorate reorder'

decorate: (e) ->
# ...

reorder: (e) ->
# ...
```

Hope someone will find it useful.