mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fix for #997
This commit is contained in:
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
@@ -1227,7 +1227,7 @@ jQuery.extend({
|
||||
// This may seem like some crazy code, but trust me when I say that this
|
||||
// is the only cross-browser way to do this. --John
|
||||
isFunction: function( fn ) {
|
||||
return !!fn && typeof fn != "string" &&
|
||||
return !!fn && typeof fn != "string" && !fn.nodeName &&
|
||||
typeof fn[0] == "undefined" && /function/i.test( fn + "" );
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user