[Pkg-javascript-commits] [backbone] 258/281: Made minor optimization to scoped jQuery/Zepto method $ on the Backbone.View

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 e1762ed077450f5ad90eec8498c4d11c8a4df394
Author: Doug Neiner <doug at pixelgraphics.us>
Date:   Sun Jan 29 00:43:45 2012 -0600

    Made minor optimization to scoped jQuery/Zepto method $ on the Backbone.View
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index 80c1fc3..bf4e4a7 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 $(selector, this.el);
+      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