re-insert closure

This commit is contained in:
rolux 2012-05-25 21:13:11 +02:00
parent a956c8b7e1
commit f46ff46da8

View file

@ -341,12 +341,13 @@ Ox.typeOf = function(value) {
// Internet Explorer 8 returns 'Object' instead of 'NodeList',
// Internet Explorer 9 returns 'HTMLCollection' instead of 'NodeList',
// Mobile Safari doesn't like null and undefined
if (
(function() {
if (
Ox.typeOf(arguments) != 'arguments'
|| Ox.typeOf(document.getElementsByTagName('a')) != 'nodelist'
|| Ox.typeOf(null) != 'null'
|| Ox.typeOf() != 'undefined'
) {
) {
Ox.typeOf = function(value) {
var ret = Object.prototype.toString.call(
value
@ -368,4 +369,5 @@ if (
}
return ret;
};
}
}
})();