From e0b23efe95b068b749581e6bda2adbd7746d016c Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 14 Sep 2011 10:42:15 -0500 Subject: [PATCH] Fix fbUpdateRequest undefined parameter logic. --- include/rfb.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/rfb.js b/include/rfb.js index 52463cb8..7cca8e60 100644 --- a/include/rfb.js +++ b/include/rfb.js @@ -1414,10 +1414,10 @@ clientEncodings = function() { fbUpdateRequest = function(incremental, x, y, xw, yw) { //Util.Debug(">> fbUpdateRequest"); - if (typeof(x) !== "undefined") { x = 0; } - if (typeof(y) !== "undefined") { y = 0; } - if (typeof(xw) !== "undefined") { xw = fb_width; } - if (typeof(yw) !== "undefined") { yw = fb_height; } + if (typeof(x) === "undefined") { x = 0; } + if (typeof(y) === "undefined") { y = 0; } + if (typeof(xw) === "undefined") { xw = fb_width; } + if (typeof(yw) === "undefined") { yw = fb_height; } var arr; arr = [3]; // msg-type arr.push8(incremental);