update comment

This commit is contained in:
rolux 2012-05-25 22:27:39 +02:00
parent b2cae84ca9
commit 735b47ca8d

View file

@ -337,10 +337,10 @@ Ox.typeOf <f> 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'