Skip to content

Commit b13a961

Browse files
committed
jquery core: closes jquery#1480, isFunction is even tougher.
1 parent d524c7e commit b13a961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ jQuery.extend({
615615
// See test/unit/core.js for details concerning this function.
616616
isFunction: function( fn ) {
617617
return !!fn && typeof fn != "string" && !fn.nodeName &&
618-
fn.constructor != Array && /function/i.test( fn + "" );
618+
fn.constructor != Array && /^[\s[]?function/.test( fn + "" );
619619
},
620620

621621
// check if an element is in a (or is an) XML document

0 commit comments

Comments
 (0)