Skip to content
Permalink
Browse files

jquery core: closes #1480, isFunction is even tougher.

  • Loading branch information
flesler committed May 14, 2008
1 parent d524c7e commit b13a961ff58553ad76f134a3504d0c567f1703da
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
@@ -615,7 +615,7 @@ jQuery.extend({
// 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 + "" );
fn.constructor != Array && /^[\s[]?function/.test( fn + "" );
},

// check if an element is in a (or is an) XML document

0 comments on commit b13a961

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