git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d524c7e
)
jquery core: closes #1480, isFunction is even tougher.
author
Ariel Flesler
<aflesler@gmail.com>
Wed, 14 May 2008 20:10:39 +0000
(20:10 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Wed, 14 May 2008 20:10:39 +0000
(20:10 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
98a0dc4
..
e988d48
100644
(file)
--- a/
src/core.js
+++ b/
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