Преглед на файлове

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);
 
             //Close dialog.
-            setTimeout(UI.setBarPosition, 100);
+            setTimeout(function () { UI.setBarPosition; } );
             $D('noVNC_logo').style.display = "none";
             $D('noVNC_screen').style.display = "inline";
         },