X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=c095f741a8886eeee1b4bf1a755ed3045a980e8e;hb=69212c501f8875b4650847053cc41eaa470e5848;hp=7db0a8c9b15654dc8359057bfc74669119947095;hpb=43c4b64f328c5d6f2642f6dcf33eb27c377c0491;p=jquery.git diff --git a/src/core.js b/src/core.js index 7db0a8c..c095f74 100644 --- a/src/core.js +++ b/src/core.js @@ -613,9 +613,10 @@ jQuery.extend({ }, // See test/unit/core.js for details concerning this function. + // Since 1.3 DOM methods and function like alert + // aren't supported. They return false on IE (#2968). isFunction: function( fn ) { - return !!fn && typeof fn != "string" && !fn.nodeName && - fn.constructor != Array && /^[\s[]?function/.test( fn + "" ); + return fn instanceof Function; }, // check if an element is in a (or is an) XML document