]> source.dussan.org Git - jquery.git/commitdiff
Tweaked comment for isFunction.
authorJohn Resig <jeresig@gmail.com>
Sat, 12 Jan 2008 23:03:39 +0000 (23:03 +0000)
committerJohn Resig <jeresig@gmail.com>
Sat, 12 Jan 2008 23:03:39 +0000 (23:03 +0000)
src/core.js

index b5a1c7072030a85dda77baf3472d9f63f2d7badb..2b856c8dda439c1bb424cea5bdfb988acffcfbaf 100644 (file)
@@ -599,8 +599,7 @@ jQuery.extend({
                return jQuery;
        },
 
-       // 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
+       // See test/unit/core.js for details concerning this function.
        isFunction: function( fn ) {
                return !!fn && typeof fn != "string" && !fn.nodeName && 
                        fn.constructor != Array && /function/i.test( fn + "" );