[Pkg-javascript-commits] [backbone] 04/37: Fixes issue #904

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:02:46 UTC 2014


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

js pushed a commit to tag 0.9.1
in repository backbone.

commit bb1a7d77926b0de45042a071a1e95311b9e37160
Author: Tomasz Tunik <tomasztunik at gmail.com>
Date:   Tue Jan 31 01:48:42 2012 +0100

    Fixes issue #904
---
 backbone.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backbone.js b/backbone.js
index d6a0aa9..23e9987 100644
--- a/backbone.js
+++ b/backbone.js
@@ -1189,9 +1189,9 @@
     return function(model, resp) {
       resp = model === originalModel ? resp : model;
       if (onError) {
-        onError(model, resp, options);
+        onError(originalModel, resp, options);
       } else {
-        originalModel.trigger('error', model, resp, options);
+        originalModel.trigger('error', originalModel, resp, options);
       }
     };
   };

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