From 7f2507aeaa5dcb834bdd3c763cb38cd5fe57c7da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renan=20Gonc=CC=A7alves?= Date: Mon, 10 Dec 2012 15:11:18 +0100 Subject: [PATCH] Fixing ReferenceError errors. --- include/input.js | 2 +- include/websock.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/input.js b/include/input.js index 86630af0..e5174782 100644 --- a/include/input.js +++ b/include/input.js @@ -653,7 +653,7 @@ return that; // Return the public API interface /* * Browser keypress to X11 keysym for Unicode characters > U+00FF */ -unicodeTable = { +var unicodeTable = { 0x0104 : 0x01a1, 0x02D8 : 0x01a2, 0x0141 : 0x01a3, diff --git a/include/websock.js b/include/websock.js index 01a24c3f..01a0eca1 100644 --- a/include/websock.js +++ b/include/websock.js @@ -25,6 +25,7 @@ // To enable WebSocket emulator debug: //window.WEB_SOCKET_DEBUG=1; +var Websock_native; if (window.WebSocket && !window.WEB_SOCKET_FORCE_FLASH) { Websock_native = true; } else if (window.MozWebSocket && !window.WEB_SOCKET_FORCE_FLASH) {