diff options
author | wei <> | 2006-04-21 11:41:21 +0000 |
---|---|---|
committer | wei <> | 2006-04-21 11:41:21 +0000 |
commit | e1e034ced29b0b9bf11a49798b4fba4d3dd0164d (patch) | |
tree | 92120227f58c2463ddb50b1592dde0436d175189 /framework/Web/Javascripts/extended/util.js | |
parent | e57fc66ee3f5259b4f7cbd18a1cd0f6da6176f5d (diff) |
Update javascript libraries, rewrote client-side validators, removed some js files, simplified javascript compression.
Diffstat (limited to 'framework/Web/Javascripts/extended/util.js')
-rw-r--r-- | framework/Web/Javascripts/extended/util.js | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/framework/Web/Javascripts/extended/util.js b/framework/Web/Javascripts/extended/util.js deleted file mode 100644 index 86f2ae90..00000000 --- a/framework/Web/Javascripts/extended/util.js +++ /dev/null @@ -1,91 +0,0 @@ -/**
- * @return {Boolean} true if is an object and has no constructors.
- */
-function isAlien(a) { return isObject(a) && typeof a.constructor != 'function' }
-
-/**
- * @return {Boolean}
- */
-function isArray(a) { return isObject(a) && a.constructor == Array }
-
-/**
- * isBoolean?
- */
-function isBoolean(a) { return typeof a == 'boolean' }
-
-/**
- * isFunction?
- */
-function isFunction(a) { return typeof a == 'function' }
-
-/**
- * isNull?
- */
-function isNull(a) { return typeof a == 'object' && !a }
-
-/**
- * isNumber?
- */
-function isNumber(a) { return typeof a == 'number' && isFinite(a) }
-
-/**
- * isObject?
- */
-function isObject(a) { return (a && typeof a == 'object') || isFunction(a) }
-
-/**
- * isRegexp?
- * we would prefer to use instanceof, but IE/mac is crippled and will choke at it
- */
-function isRegexp(a) { return a && a.constructor == RegExp }
-
-/**
- * isString?
- */
-function isString(a) { return typeof a == 'string' }
-
-/**
- * isUndefined?
- */
-function isUndefined(a) { return typeof a == 'undefined' }
-
-/**
- * isEmpty?
- */
-function isEmpty(o) {
- var i, v;
- if (isObject(o)) {
- for (i in o) {
- v = o[i];
- if (isUndefined(v) && isFunction(v)) {
- return false;
- }
- }
- }
- return true;
-}
-
-/**
- * alias for isUndefined
- */
-function undef(v) { return isUndefined(v) }
-
-/**
- * alias for !isUndefined
- */
-function isdef(v) { return !isUndefined(v) }
-
-/**
- * true if o is an Element Node or document or window. The last two because it's used for onload events
- if you specify strict as true, return false for document or window
- */
-function isElement(o, strict) {
- return o && isObject(o) && ((!strict && (o==window || o==document)) || o.nodeType == 1)
-}
-
-/**
- * true if o is an Array or a NodeList, (NodeList in Opera returns a type of function)
- */
-function isList(o) { return o && isObject(o) && isArray(o) }
-
-
|