Set $D on window directly.

Addresses: https://github.com/kanaka/websockify/issues/29
This commit is contained in:
Joel Martin 2012-02-14 17:23:14 -06:00
parent 32f135d730
commit 9e6e6662c7
1 changed files with 1 additions and 1 deletions

View File

@ -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) {