Skip to content
Permalink
Browse files

Tweaked comment for isFunction.

  • Loading branch information
jeresig committed Jan 12, 2008
1 parent d36382e commit 9bcd2b370b4aa72cc60af85d0f8a0872d0d17a0a
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core.js
@@ -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 + "" );

0 comments on commit 9bcd2b3

Please sign in to comment.
You can’t perform that action at this time.