Skip to content

Commit

Permalink
Made minor optimization to scoped jQuery/Zepto method $ on the Backbo…
Browse files Browse the repository at this point in the history
…ne.View
  • Loading branch information
dcneiner committed Jan 29, 2012
1 parent 028771f commit e1762ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backbone.js
Expand Up @@ -996,7 +996,7 @@
// jQuery delegate for element lookup, scoped to DOM elements within the
// current view. This should be prefered to global lookups where possible.
$: function(selector) {
return $(selector, this.el);
return $(this.el).find(selector);
},

// Initialize is an empty function by default. Override it with your own
Expand Down

0 comments on commit e1762ed

Please sign in to comment.