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.
This commit is contained in:
samhed 2016-04-27 00:41:16 +02:00 committed by Samuel Mannehed
parent 0f96b33dd1
commit 41ff2571e9
1 changed files with 1 additions and 1 deletions

View File

@ -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";
},