[Pkg-javascript-commits] [backbone] 142/211: Pass options to the coll.add call in Collection::create so that it can work silently.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:15 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 9d5308b1ab76f8cce34d945a9afb255e720da977
Author: Corban Brook <corbanbrook at gmail.com>
Date:   Thu May 5 15:15:16 2011 -0400

    Pass options to the coll.add call in Collection::create so that it can work silently.
---
 backbone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backbone.js b/backbone.js
index 7ec5d48..11bfea7 100644
--- a/backbone.js
+++ b/backbone.js
@@ -536,7 +536,7 @@
       }
       var success = options.success;
       options.success = function(nextModel, resp, xhr) {
-        coll.add(nextModel);
+        coll.add(nextModel, options);
         if (success) success(nextModel, resp, xhr);
       };
       model.save(null, 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