浏览代码

Declare var in for

Nicolas Rosset 4 年之前
父节点
当前提交
3fb12315ec
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      tarteaucitron.js

+ 1 - 2
tarteaucitron.js

@@ -1940,8 +1940,7 @@ var tarteaucitron = {
         /**
          Utility function to Add or update the fields of obj1 with the ones in obj2
          */
-        var key;
-        for(key in custom){
+        for(var key in custom){
             if(custom[key] instanceof Object){
                 source[key] = tarteaucitron.AddOrUpdate(source[key], custom[key]);
             }else{