From 9e6e6662c727d846d12906c6054d7ec95ef546ed Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Tue, 14 Feb 2012 17:23:14 -0600 Subject: [PATCH] Set $D on window directly. Addresses: https://github.com/kanaka/websockify/issues/29 --- include/webutil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/webutil.js b/include/webutil.js index ee370e04..7a0a0760 100644 --- a/include/webutil.js +++ b/include/webutil.js @@ -17,7 +17,7 @@ var WebUtil = {}, $D; * Simple DOM selector by ID */ if (!window.$D) { - $D = function (id) { + window.$D = function (id) { if (document.getElementById) { return document.getElementById(id); } else if (document.all) {