Commit 9bcd2b37 authored by John Resig's avatar John Resig

Tweaked comment for isFunction.

parent d36382e9
...@@ -599,8 +599,7 @@ jQuery.extend({ ...@@ -599,8 +599,7 @@ jQuery.extend({
return jQuery; return jQuery;
}, },
// This may seem like some crazy code, but trust me when I say that this // See test/unit/core.js for details concerning this function.
// is the only cross-browser way to do this. --John
isFunction: function( fn ) { isFunction: function( fn ) {
return !!fn && typeof fn != "string" && !fn.nodeName && return !!fn && typeof fn != "string" && !fn.nodeName &&
fn.constructor != Array && /function/i.test( fn + "" ); fn.constructor != Array && /function/i.test( fn + "" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment