From 73858ecf31642e3ed9a893d4aa755b4e348812de Mon Sep 17 00:00:00 2001 From: Tomasz Tunik Date: Mon, 30 Jan 2012 22:27:16 +0100 Subject: [PATCH] Removed multiple definitions for already defined variable --- backbone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backbone.js b/backbone.js index edbbf420..4e96885c 100644 --- a/backbone.js +++ b/backbone.js @@ -223,7 +223,7 @@ options || (options = {}); if (!attrs) return this; if (attrs instanceof Backbone.Model) attrs = attrs.attributes; - if (options.unset) for (var attr in attrs) attrs[attr] = void 0; + if (options.unset) for (attr in attrs) attrs[attr] = void 0; // Run validation. if (this.validate && !this._performValidation(attrs, options)) return false; @@ -1187,7 +1187,7 @@ // Wrap an optional error callback with a fallback error event. Backbone.wrapError = function(onError, originalModel, options) { return function(model, resp) { - var resp = model === originalModel ? resp : model; + resp = model === originalModel ? resp : model; if (onError) { onError(model, resp, options); } else {