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
(parent:
12bb969
)
jquery core: improves #3248. Functions are supported by isFunction.
author
Ariel Flesler
<aflesler@gmail.com>
Wed, 29 Oct 2008 01:12:27 +0000
(
01:12
+0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Wed, 29 Oct 2008 01:12:27 +0000
(
01:12
+0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
9279d17
..
3a2548f
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-1137,7
+1137,7
@@
jQuery.extend({
if( array != null ){
var i = array.length;
// The window, strings (and functions) also have 'length'
- if( i == null || typeof array == 'string' || array.setInterval )
+ if( i == null || typeof array == 'string' || jQuery.isFunction(array) || array.setInterval )
ret[0] = array;
else
while( i )