_ to status in Model.parse. No need to clobber Underscore.js just to ignore a parameter.

This commit is contained in:
Samuel Clay
2011-04-22 11:32:57 -04:00
parent 4881621a72
commit 399e7453f3

View File

@@ -290,7 +290,7 @@
if (attrs && !this.set(attrs, options)) return false;
var model = this;
var success = options.success;
options.success = function(resp, _, xhr) {
options.success = function(resp, status, xhr) {
if (!model.set(model.parse(resp, xhr), options)) return false;
if (success) success(model, resp, request);
};
@@ -514,7 +514,7 @@
options || (options = {});
var collection = this;
var success = options.success;
options.success = function(resp, _, xhr) {
options.success = function(resp, status, xhr) {
collection[options.add ? 'add' : 'refresh'](collection.parse(resp, xhr), options);
if (success) success(collection, resp);
};