From a7a8962676734041b85a96a0eaa70ac4dc35f545 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Thu, 22 Jul 2010 10:54:47 -0500 Subject: [PATCH] JSLint. RFB obj to rfb.js; vnc.js the 'loader'. Move the whole RFB object to rfb.js. vnc.js is now just the loader file. This allows an integrating project to easily replace vnc.js with an alternate loader mechanism (or just do it directly in the html file). Thanks for the idea primalmotion (http://github.com/primalmotion). Also, JSLint the various files. --- include/canvas.js | 34 +- include/default_controls.js | 14 +- include/rfb.js | 1618 +++++++++++++++++++++++++++++++++++ include/util.js | 21 +- include/vnc.js | 1609 +--------------------------------- 5 files changed, 1646 insertions(+), 1650 deletions(-) create mode 100644 include/rfb.js diff --git a/include/canvas.js b/include/canvas.js index be9e7fe5..3e049cfb 100644 --- a/include/canvas.js +++ b/include/canvas.js @@ -8,21 +8,10 @@ "use strict"; /*jslint white: false, bitwise: false */ -/*global window, $, Util */ +/*global window, $, Util, Base64 */ -var Canvas, Canvas_native; - -(function () { - var pre, start = "