Moved resizeTimout to the UI object, no reason to have it outside anymore..
This commit is contained in:
parent
40b35fa20d
commit
045d922406
|
@ -15,8 +15,6 @@ var UI;
|
||||||
(function () {
|
(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var resizeTimeout;
|
|
||||||
|
|
||||||
// Load supporting scripts
|
// Load supporting scripts
|
||||||
window.onscriptsload = function () { UI.load(); };
|
window.onscriptsload = function () { UI.load(); };
|
||||||
Util.load_scripts(["webutil.js", "base64.js", "websock.js", "des.js",
|
Util.load_scripts(["webutil.js", "base64.js", "websock.js", "des.js",
|
||||||
|
@ -25,9 +23,10 @@ var UI;
|
||||||
|
|
||||||
UI = {
|
UI = {
|
||||||
|
|
||||||
rfb_state : 'loaded',
|
rfb_state: 'loaded',
|
||||||
settingsOpen : false,
|
resizeTimeout: null,
|
||||||
connSettingsOpen : false,
|
settingsOpen: false,
|
||||||
|
connSettingsOpen: false,
|
||||||
popupStatusTimeout: null,
|
popupStatusTimeout: null,
|
||||||
clipboardOpen: false,
|
clipboardOpen: false,
|
||||||
keyboardVisible: false,
|
keyboardVisible: false,
|
||||||
|
@ -253,8 +252,8 @@ var UI;
|
||||||
// When the local window has been resized, wait until the size remains
|
// When the local window has been resized, wait until the size remains
|
||||||
// the same for 0.5 seconds before sending the request for changing
|
// the same for 0.5 seconds before sending the request for changing
|
||||||
// the resolution of the session
|
// the resolution of the session
|
||||||
clearTimeout(resizeTimeout);
|
clearTimeout(UI.resizeTimeout);
|
||||||
resizeTimeout = setTimeout(function(){
|
UI.resizeTimeout = setTimeout(function(){
|
||||||
display.set_maxWidth(size.w);
|
display.set_maxWidth(size.w);
|
||||||
display.set_maxHeight(size.h);
|
display.set_maxHeight(size.h);
|
||||||
Util.Debug('Attempting setDesktopSize(' +
|
Util.Debug('Attempting setDesktopSize(' +
|
||||||
|
|
Loading…
Reference in New Issue