From b2c2ab2bb7fc43e680214a3627181a0c2226c6f9 Mon Sep 17 00:00:00 2001 From: Brandon Aaron Date: Sun, 25 Feb 2007 17:40:27 +0000 Subject: Fix for #997 --- src/jquery/jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 + "" ); }, -- cgit v1.2.3