[Pkg-javascript-commits] [backbone] 48/281: better method names

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 79eea1dc3c6680cd4f5a22ceed7facfbe2208180
Author: Alex Graul <alex.graul at guardian.co.uk>
Date:   Sat Oct 29 16:16:02 2011 -0400

    better method names
---
 backbone.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backbone.js b/backbone.js
index 55c2c2b..0edcfca 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(first, second) {
-      var resp = first === model ? second : first;
+    return function(resp_or_model, possible_resp) {
+      var resp = resp_or_model === model ? possible_resp : resp_or_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