Fix for #997
This commit is contained in:
parent
b93051f5af
commit
b2c2ab2bb7
2 changed files with 3 additions and 2 deletions
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 + "" );
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue