[Pkg-javascript-commits] [backbone] 36/211: adding options to the onError direct callback.

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


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

js pushed a commit to tag 0.5.0
in repository backbone.

commit 4d6d494f2edba46f8daafe1bd6d94c6c6dda5cd6
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Mon Dec 20 12:23:52 2010 -0500

    adding options to the onError direct callback.
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index d903c6e..8067adb 100644
--- a/backbone.js
+++ b/backbone.js
@@ -1031,7 +1031,7 @@
   var wrapError = function(onError, model, options) {
     return function(resp) {
       if (onError) {
-        onError(model, resp);
+        onError(model, resp, options);
       } else {
         model.trigger('error', model, 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