mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-23 05:48:10 -05:00
Updated context find (.$) to use new cached, wrapped this.$el.
This commit is contained in:
@@ -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 $(this.el).find(selector);
|
||||
return this.$el.find(selector);
|
||||
},
|
||||
|
||||
// Initialize is an empty function by default. Override it with your own
|
||||
|
||||
Reference in New Issue
Block a user