diff options
author | Ariel Flesler <aflesler@gmail.com> | 2008-10-29 01:12:27 +0000 |
---|---|---|
committer | Ariel Flesler <aflesler@gmail.com> | 2008-10-29 01:12:27 +0000 |
commit | 61784e15816a35086388ebd5b98b56dea3535052 (patch) | |
tree | 861b36ef91ffdece061c3a14743591613aa947dd | |
parent | 12bb969411716dcad3237f3403e83744add3f84c (diff) | |
download | jquery-61784e15816a35086388ebd5b98b56dea3535052.tar.gz jquery-61784e15816a35086388ebd5b98b56dea3535052.zip |
jquery core: improves #3248. Functions are supported by isFunction.
-rw-r--r-- | src/core.js | 2 |
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 ) |