diff --git a/source/Ox/js/Type.js b/source/Ox/js/Type.js index db53f4d4..02fbb01e 100644 --- a/source/Ox/js/Type.js +++ b/source/Ox/js/Type.js @@ -337,10 +337,10 @@ Ox.typeOf Returns the type of a value Ox.typeOf = function(value) { return Object.prototype.toString.call(value).slice(8, -1).toLowerCase(); }; -// Firefox 3.6 returns 'Object' instead of 'Arguments', -// Internet Explorer 8 returns 'Object' instead of 'NodeList', -// Internet Explorer 9 returns 'HTMLCollection' instead of 'NodeList', -// Mobile Safari doesn't like null and undefined +// Firefox 3.6 returns 'Object' for arguments, +// Internet Explorer 8 returns 'Object' for nodelists, +// Internet Explorer 9 returns 'HTMLCollection' for nodelists, +// Mobile Safari returns 'DOMWindow' for null and undefined if ( Ox.typeOf((function() { return arguments; }())) != 'arguments' || Ox.typeOf(document.getElementsByTagName('a')) != 'nodelist'