Skip to content

Commit

Permalink
Pass Collection#fetch options along to refresh
Browse files Browse the repository at this point in the history
Matches the behavior of Model#fetch
  • Loading branch information
josh committed Dec 17, 2010
1 parent 3d8fe92 commit ad2ae8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ad2ae8e

Please sign in to comment.