aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-10-29 01:12:27 +0000
committerAriel Flesler <aflesler@gmail.com>2008-10-29 01:12:27 +0000
commit61784e15816a35086388ebd5b98b56dea3535052 (patch)
tree861b36ef91ffdece061c3a14743591613aa947dd
parent12bb969411716dcad3237f3403e83744add3f84c (diff)
downloadjquery-61784e15816a35086388ebd5b98b56dea3535052.tar.gz
jquery-61784e15816a35086388ebd5b98b56dea3535052.zip
jquery core: improves #3248. Functions are supported by isFunction.
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index 9279d179a..3a2548f17 100644
--- 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 )