update comment
This commit is contained in:
parent
b2cae84ca9
commit
735b47ca8d
1 changed files with 4 additions and 4 deletions
|
@ -337,10 +337,10 @@ Ox.typeOf <f> Returns the type of a value
|
||||||
Ox.typeOf = function(value) {
|
Ox.typeOf = function(value) {
|
||||||
return Object.prototype.toString.call(value).slice(8, -1).toLowerCase();
|
return Object.prototype.toString.call(value).slice(8, -1).toLowerCase();
|
||||||
};
|
};
|
||||||
// Firefox 3.6 returns 'Object' instead of 'Arguments',
|
// Firefox 3.6 returns 'Object' for arguments,
|
||||||
// Internet Explorer 8 returns 'Object' instead of 'NodeList',
|
// Internet Explorer 8 returns 'Object' for nodelists,
|
||||||
// Internet Explorer 9 returns 'HTMLCollection' instead of 'NodeList',
|
// Internet Explorer 9 returns 'HTMLCollection' for nodelists,
|
||||||
// Mobile Safari doesn't like null and undefined
|
// Mobile Safari returns 'DOMWindow' for null and undefined
|
||||||
if (
|
if (
|
||||||
Ox.typeOf((function() { return arguments; }())) != 'arguments'
|
Ox.typeOf((function() { return arguments; }())) != 'arguments'
|
||||||
|| Ox.typeOf(document.getElementsByTagName('a')) != 'nodelist'
|
|| Ox.typeOf(document.getElementsByTagName('a')) != 'nodelist'
|
||||||
|
|
Loading…
Reference in a new issue