[Pkg-javascript-commits] [backbone] 173/211: partial issue #239, always pass options to error callbacks / events.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:20 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 87a81e43e2a051b68002b0b3a0ca6e46e1aeddcd
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Fri May 27 10:58:40 2011 -0400

    partial issue #239, always pass options to error callbacks / events.
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index 0f440c4..2b98b1f 100644
--- a/backbone.js
+++ b/backbone.js
@@ -396,7 +396,7 @@
       var error = this.validate(attrs);
       if (error) {
         if (options.error) {
-          options.error(this, error);
+          options.error(this, error, options);
         } else {
           this.trigger('error', this, error, 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