Skip to content

Commit

Permalink
Remove unused arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
braddunbar committed Dec 21, 2012
1 parent 6d589ba commit 6023be4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -1440,13 +1440,13 @@
}

var success = options.success;
options.success = function(resp, status, xhr) {
options.success = function(resp) {
if (success) success(model, resp, options);
model.trigger('sync', model, resp, options);
};

var error = options.error;
options.error = function(xhr, status, thrown) {
options.error = function(xhr) {
if (error) error(model, xhr, options);
model.trigger('error', model, xhr, options);
};
Expand Down

0 comments on commit 6023be4

Please sign in to comment.