Browse Source

Missing variable declaration on a for statement for Admin.js

Sullivan SENECHAL 7 năm trước cách đây
mục cha
commit
717b90547e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Resources/public/Admin.js

+ 1 - 1
Resources/public/Admin.js

@@ -475,7 +475,7 @@ var Admin = {
         if (style !== undefined) {
             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);
                 if (matches !== null && matches.length >= 1)
                     return matches[1];