[Pkg-javascript-commits] [backbone] 49/101: removing todo

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:58:28 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.1.0
in repository backbone.

commit 626f7d2cfa0b9856aee66d187884142782126f5a
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Thu Oct 7 10:29:47 2010 -0400

    removing todo
---
 TODO        | 3 ---
 backbone.js | 6 +++---
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/TODO b/TODO
deleted file mode 100644
index 54b3439..0000000
--- a/TODO
+++ /dev/null
@@ -1,3 +0,0 @@
-* Hook up data binding in the view. Both ways. Parallel to models.
-
-* Add simple validations.
diff --git a/backbone.js b/backbone.js
index 9ad40b0..6e2d381 100644
--- a/backbone.js
+++ b/backbone.js
@@ -510,7 +510,7 @@
   // jQuery lookup, scoped to DOM elements within the current view.
   // This should be prefered to global jQuery lookups, if you're dealing with
   // a specific view.
-  var jQueryScoped = function(selector) {
+  var jQueryDelegate = function(selector) {
     return $(selector, this.el);
   };
 
@@ -521,8 +521,8 @@
     tagName : 'div',
 
     // Attach the jQuery function as the `$` and `jQuery` properties.
-    $       : jQueryScoped,
-    jQuery  : jQueryScoped,
+    $       : jQueryDelegate,
+    jQuery  : jQueryDelegate,
 
     // **render** is the core function that your view should override, in order
     // to populate its element (`this.el`), with the appropriate HTML. The

-- 
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