瀏覽代碼

Missing variable declaration on a for statement for Admin.js

Sullivan SENECHAL 7 年之前
父節點
當前提交
717b90547e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Resources/public/Admin.js

+ 1 - 1
Resources/public/Admin.js

@@ -475,7 +475,7 @@ var Admin = {
         if (style !== undefined) {
         if (style !== undefined) {
             var attrs = style.split(';');
             var attrs = style.split(';');
 
 
-            for (i = 0, l = attrs.length; i < l; i = i + 1) {
+            for (var i = 0, l = attrs.length; i < l; i = i + 1) {
                 var matches = attrs[i].replace(/\s/g, '').match(ereg);
                 var matches = attrs[i].replace(/\s/g, '').match(ereg);
                 if (matches !== null && matches.length >= 1)
                 if (matches !== null && matches.length >= 1)
                     return matches[1];
                     return matches[1];