diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2007-02-25 17:40:27 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2007-02-25 17:40:27 +0000 |
commit | b2c2ab2bb7fc43e680214a3627181a0c2226c6f9 (patch) | |
tree | ec49dd701de39b43021e9ded58fa5b0d505c3f9e /src | |
parent | b93051f5af385ffca32df2333b1ca761cb56863f (diff) | |
download | jquery-b2c2ab2bb7fc43e680214a3627181a0c2226c6f9.tar.gz jquery-b2c2ab2bb7fc43e680214a3627181a0c2226c6f9.zip |
Fix for #997
Diffstat (limited to 'src')
-rw-r--r-- | src/jquery/jquery.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 81b5b64e7..eecc5a744 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -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 + "" ); }, |