We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d524c7e commit b13a961Copy full SHA for b13a961
src/core.js
@@ -615,7 +615,7 @@ jQuery.extend({
615
// See test/unit/core.js for details concerning this function.
616
isFunction: function( fn ) {
617
return !!fn && typeof fn != "string" && !fn.nodeName &&
618
- fn.constructor != Array && /function/i.test( fn + "" );
+ fn.constructor != Array && /^[\s[]?function/.test( fn + "" );
619
},
620
621
// check if an element is in a (or is an) XML document
0 commit comments