Commits

Mikhail Korobov committed 220a1ae

testOk variable was polluting the 'window' object

  • Participants
  • Parent commits ead7071

Comments (0)

Files changed (1)

File admin_tools/media/admin_tools/js/utils.js

     var head = document.getElementsByTagName('head')[0];
 
     function loadScript(index){
+        var testOk;
+
         if (index >= len){
             onComplete();
             return;
         try {
             testOk = js_files[index].test();
         } catch (e) {
-            // with certain browsers like opera the above test can fail 
+            // with certain browsers like opera the above test can fail
             // because of undefined variables...
             testOk = true;
         }