[Pkg-javascript-commits] [backbone] 50/281: nicer again

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:01:55 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 afc2d99b4632aca90f5c8d779541a0c655e621de
Author: Alex Graul <alex.graul at guardian.co.uk>
Date:   Sat Oct 29 16:19:04 2011 -0400

    nicer again
---
 backbone.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backbone.js b/backbone.js
index 0edcfca..4dfa1ff 100644
--- a/backbone.js
+++ b/backbone.js
@@ -1147,8 +1147,8 @@
 
   // Wrap an optional error callback with a fallback error event.
   var wrapError = function(onError, model, options) {
-    return function(resp_or_model, possible_resp) {
-      var resp = resp_or_model === model ? possible_resp : resp_or_model;
+    return function(model, resp) {
+      var resp = model === model ? 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