documentcloud/backbone — Issue #961: Add this.dollar for $(this.el) to Backbone.View
Author: kenn
Created: 2012-02-05 19:16:30+00:00
State: open

More often than not, I find myself needing `$(this.el)`, particularly when the view has multiple instances and has to operate on a DOM.

```
class SomeView extends Backbone.View
initialize: ->
@dollar = $(@el)

views[0] = new SomeView
views[1] = new SomeView

view[0].dollar.addClass('active')
```

Would adding this to `Backbone.View` itself be a bad idea?

I also think caching the jQuery/Zepto object in this manner could help making faster apps.