diff --git a/source/Ox/js/Type.js b/source/Ox/js/Type.js index 44e8ff2a..846c46cf 100644 --- a/source/Ox/js/Type.js +++ b/source/Ox/js/Type.js @@ -335,7 +335,8 @@ Ox.typeOf Returns the type of a value 'undefined' @*/ Ox.typeOf = function(val) { - // Mobile Safari doesn't like undefined here - return val === void 0 ? 'undefined' + // Mobile Safari doesn't like null or undefined here + return val === null ? 'null' + : val === void 0 ? 'undefined' : Object.prototype.toString.call(val).slice(8, -1).toLowerCase(); };