[Pkg-javascript-commits] [backbone] 120/211: Pass the error and success callbacks when creating the model to add to a Collection

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:12 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 1598801f2312755f1efc959638dd2d406bb43023
Author: Pablo A. Torres Navarrete <tn.pablo at gmail.com>
Date:   Thu Apr 21 11:29:55 2011 -0500

    Pass the error and success callbacks when creating the model to add to a Collection
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index 7da3a57..9055844 100644
--- a/backbone.js
+++ b/backbone.js
@@ -530,7 +530,7 @@
       if (!(model instanceof Backbone.Model)) {
         var attrs = model;
         model = new this.model(null, {collection: coll});
-        if (!model.set(attrs)) return false;
+        if (!model.set(attrs, options)) return false;
       } else {
         model.collection = coll;
       }

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