webutil.js, util.js: split cleanup.
This commit is contained in:
parent
5a00c9d18a
commit
a59f1cd269
|
@ -8,28 +8,12 @@
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
/*jslint bitwise: false, white: false */
|
/*jslint bitwise: false, white: false */
|
||||||
/*global window, console, document, navigator, ActiveXObject*/
|
/*global window, console, document, navigator, ActiveXObject */
|
||||||
|
|
||||||
// Globals defined here
|
// 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
|
* Make arrays quack
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
/*jslint bitwise: false, white: false */
|
/*jslint bitwise: false, white: false */
|
||||||
/*global window, console, document, navigator, ActiveXObject*/
|
/*global window, document */
|
||||||
|
|
||||||
// Globals defined here
|
// Globals defined here
|
||||||
var WebUtil = {}, $;
|
var WebUtil = {}, $;
|
||||||
|
|
Loading…
Reference in New Issue