X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fcore.js;h=e988d48f982cb9015720c9221823891be5ff30cf;hb=b13a961ff58553ad76f134a3504d0c567f1703da;hp=98a0dc4bd5f3fd554465146f5c35b28ee5d6b658;hpb=69f72761faa6878e361711b70f1d27c467d256e4;p=jquery.git diff --git a/src/core.js b/src/core.js index 98a0dc4..e988d48 100644 --- a/src/core.js +++ b/src/core.js @@ -615,7 +615,7 @@ jQuery.extend({ // See test/unit/core.js for details concerning this function. isFunction: function( fn ) { return !!fn && typeof fn != "string" && !fn.nodeName && - fn.constructor != Array && /function/i.test( fn + "" ); + fn.constructor != Array && /^[\s[]?function/.test( fn + "" ); }, // check if an element is in a (or is an) XML document