[Pkg-javascript-commits] [backbone] 01/37: Removed multiple definitions for already defined variable

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:02:45 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.9.1
in repository backbone.

commit 73858ecf31642e3ed9a893d4aa755b4e348812de
Author: Tomasz Tunik <tomasztunik at gmail.com>
Date:   Mon Jan 30 22:27:16 2012 +0100

    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 edbbf42..4e96885 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 {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list