Browse Source

Missing variable declaration on a for statement for Admin.js

Sullivan SENECHAL 7 years ago
parent
commit
717b90547e
1 changed files with 1 additions and 1 deletions
  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];