Permalink
Browse files

_setElement no longer takes in attributes, update the corresponding c…

…omment
  • Loading branch information...
akre54 committed Jul 8, 2014
1 parent 3b34bf7 commit 628590bac02b7eb7ef6590773fdb90422e77b913
Showing with 4 additions and 4 deletions.
  1. +4 −4 backbone.js
View
@@ -1093,10 +1093,10 @@
},
// Creates the `this.el` and `this.$el` references for this view using the
- // given `el` and a hash of `attributes`. `el` can be a CSS selector or an
- // HTML string, a jQuery context or an element. Subclasses can override
- // this to utilize an alternative DOM manipulation API and are only required
- // to set the `this.el` property.
+ // given `el`. `el` can be a CSS selector or an HTML string, a jQuery
+ // context or an element. Subclasses can override this to utilize an
+ // alternative DOM manipulation API and are only required to set the
+ // `this.el` property.
_setElement: function(el) {
this.$el = el instanceof Backbone.$ ? el : Backbone.$(el);
this.el = this.$el[0];

1 comment on commit 628590b

@braddunbar

This comment has been minimized.

Show comment Hide comment
@braddunbar

braddunbar Jul 8, 2014

Collaborator

Good stuff. Thanks @akre54!

Collaborator

braddunbar commented on 628590b Jul 8, 2014

Good stuff. Thanks @akre54!

Please sign in to comment.