Преглед изворни кода

Timeouts should always use anonymous functions

While you CAN pass functions in strings, it is not the correct way
of doing it. The browsers are just being nice.
samhed пре 9 година
родитељ
комит
a20a898765
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      include/ui.js

+ 1 - 1
include/ui.js

@@ -728,7 +728,7 @@ var UI;
             UI.rfb.connect(host, port, password, path);
             UI.rfb.connect(host, port, password, path);
 
 
             //Close dialog.
             //Close dialog.
-            setTimeout(UI.setBarPosition, 100);
+            setTimeout(function () { UI.setBarPosition; } );
             $D('noVNC_logo').style.display = "none";
             $D('noVNC_logo').style.display = "none";
             $D('noVNC_screen').style.display = "inline";
             $D('noVNC_screen').style.display = "inline";
         },
         },