From 399e7453f34aa366010b225eecc7d4ec0eea1a80 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Fri, 22 Apr 2011 11:32:57 -0400 Subject: [PATCH] _ to status in Model.parse. No need to clobber Underscore.js just to ignore a parameter. --- backbone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backbone.js b/backbone.js index b41c77c8..55b4bafb 100644 --- a/backbone.js +++ b/backbone.js @@ -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); };