From a59f1cd2691c50036ee895e993b7aa10b2ea03bb Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 29 Sep 2010 15:05:27 -0500 Subject: [PATCH] webutil.js, util.js: split cleanup. --- include/util.js | 22 +++------------------- include/webutil.js | 2 +- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/include/util.js b/include/util.js index 9610a0b7..726486b7 100644 --- a/include/util.js +++ b/include/util.js @@ -8,28 +8,12 @@ "use strict"; /*jslint bitwise: false, white: false */ -/*global window, console, document, navigator, ActiveXObject*/ +/*global window, console, document, navigator, ActiveXObject */ // Globals defined here -var Util = {}, $; +var Util = {}; -/* - * Simple DOM selector by ID - */ -if (!window.$) { - $ = function (id) { - if (document.getElementById) { - return document.getElementById(id); - } else if (document.all) { - return document.all[id]; - } else if (document.layers) { - return document.layers[id]; - } - return undefined; - }; -} - /* * Make arrays quack */ @@ -238,4 +222,4 @@ Util.Flash = (function(){ } version = v.match(/\d+/g); return {version: parseInt(version[0] || 0 + '.' + version[1], 10) || 0, build: parseInt(version[2], 10) || 0}; -}()); \ No newline at end of file +}()); diff --git a/include/webutil.js b/include/webutil.js index 162cae42..39d63424 100644 --- a/include/webutil.js +++ b/include/webutil.js @@ -8,7 +8,7 @@ "use strict"; /*jslint bitwise: false, white: false */ -/*global window, console, document, navigator, ActiveXObject*/ +/*global window, document */ // Globals defined here var WebUtil = {}, $;