[Pkg-javascript-commits] [backbone] 62/281: fixing broken comparison.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:01:57 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 18be7107c7413d921e948df64b87558ce0fc0648
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Mon Oct 31 11:56:53 2011 -0400

    fixing broken comparison.
---
 backbone.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backbone.js b/backbone.js
index 1aaf75d..2ac0640 100644
--- a/backbone.js
+++ b/backbone.js
@@ -1149,9 +1149,9 @@
   };
 
   // Wrap an optional error callback with a fallback error event.
-  var wrapError = function(onError, model, options) {
+  var wrapError = function(onError, originalModel, options) {
     return function(model, resp) {
-      var resp = model === model ? resp : model;
+      var resp = model === originalModel ? resp : model;
       if (onError) {
         onError(model, resp, options);
       } else {

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