Skip to content

Commit

Permalink
_setElement no longer takes in attributes, update the corresponding c…
Browse files Browse the repository at this point in the history
…omment
  • Loading branch information
akre54 committed Jul 8, 2014
1 parent 3b34bf7 commit 628590b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backbone.js
Expand Up @@ -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];
Expand Down

1 comment on commit 628590b

@braddunbar
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff. Thanks @akre54!

Please sign in to comment.