X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=81a920b874e74fd2c395341c46e69bbbc5ab5fb7;hb=5d2be7e299131a31cffbd73edea59cde30445608;hp=5a005556239c376990be52733e617154f71b01c6;hpb=9ce1d09a0a002eb147411166dee800335a60f4e4;p=jquery.git diff --git a/src/core.js b/src/core.js index 5a00555..81a920b 100644 --- a/src/core.js +++ b/src/core.js @@ -446,7 +446,11 @@ jQuery.extend({ }, type: function( obj ) { - return toString.call(obj).slice(8, -1).toLowerCase(); + return obj === null ? + "null" : + obj === undefined ? + "undefined" : + toString.call(obj).slice(8, -1).toLowerCase(); }, isPlainObject: function( obj ) {