Explorar o código

Missing variable declaration on a for statement for Admin.js

Sullivan SENECHAL %!s(int64=7) %!d(string=hai) anos
pai
achega
717b90547e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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];