X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fcore.js;h=6e1f74520d9c0fa8407e67b1d9ab16d1e6e7dd83;hb=ea8b1584b1905bbb414dc2e3cf562c6f3904bd97;hp=81a920b874e74fd2c395341c46e69bbbc5ab5fb7;hpb=5d2be7e299131a31cffbd73edea59cde30445608;p=jquery.git diff --git a/src/core.js b/src/core.js index 81a920b..6e1f745 100644 --- a/src/core.js +++ b/src/core.js @@ -441,15 +441,13 @@ jQuery.extend({ return jQuery.type(obj) === "function"; }, - isArray: function( obj ) { + isArray: Array.isArray || function( obj ) { return jQuery.type(obj) === "array"; }, type: function( obj ) { - return obj === null ? - "null" : - obj === undefined ? - "undefined" : + return obj == null ? + String( obj ) : toString.call(obj).slice(8, -1).toLowerCase(); },