documentcloud/backbone — pull request #1172 by ansman (2012-04-02 10:40:09+00:00)
Title: This fixes as bug when have an attribute in a view and specify an ID to the constructor

Here is an example of the problem:

```
v = Backbone.View.extend({attributes: {}})
v1 = new v({id: 'foo'})
v1.el #

​

​
v2 = new v()
v2.el #

​

​
```

This pull request fixes that, it also includes a test case for this bug.