[Pkg-javascript-commits] [backbone] 26/211: Pass Collection#fetch options along to refresh
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 16:59:58 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 ad2ae8e162106c174ddf1b798d39d352511b853b
Author: Joshua Peek <josh at joshpeek.com>
Date: Thu Dec 16 20:13:15 2010 -0600
Pass Collection#fetch options along to refresh
Matches the behavior of Model#fetch
---
backbone.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backbone.js b/backbone.js
index beb4904..f24ff30 100644
--- a/backbone.js
+++ b/backbone.js
@@ -493,7 +493,7 @@
var collection = this;
var success = options.success;
options.success = function(resp) {
- collection[options.add ? 'add' : 'refresh'](collection.parse(resp));
+ collection[options.add ? 'add' : 'refresh'](collection.parse(resp), options);
if (success) success(collection, resp);
};
options.error = wrapError(options.error, collection, 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