[Pkg-javascript-commits] [backbone] 259/281: Updated context find (`.$`) to use new cached, wrapped `this.$el`.
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:02:20 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.9.0
in repository backbone.
commit 018c19a12aff863106f86397f3a7c229b025f506
Author: Douglas Neiner <doug at pixelgraphics.us>
Date: Sun Jan 29 08:51:51 2012 -0600
Updated context find (`.$`) to use new cached, wrapped `this.$el`.
---
backbone.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backbone.js b/backbone.js
index bf4e4a7..9779f72 100644
--- a/backbone.js
+++ b/backbone.js
@@ -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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list