diff options
author | Ariel Flesler <aflesler@gmail.com> | 2008-08-13 18:16:14 +0000 |
---|---|---|
committer | Ariel Flesler <aflesler@gmail.com> | 2008-08-13 18:16:14 +0000 |
commit | ec146fc73d0ea06bf29938e6427fad7bcaefd6ad (patch) | |
tree | bf5ec33160e0b6894430c4b3802c8d127c96e1bf /src/core.js | |
parent | 5dc7bb7233efee125922cc63e286c96a73b9326c (diff) | |
download | jquery-ec146fc73d0ea06bf29938e6427fad7bcaefd6ad.tar.gz jquery-ec146fc73d0ea06bf29938e6427fad7bcaefd6ad.zip |
jquery core: closes #3154. makeArray uses typeof instead of attribute sniffing for strings.
Diffstat (limited to 'src/core.js')
-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 d910f99ba..64c833175 100644 --- a/src/core.js +++ b/src/core.js @@ -1133,7 +1133,7 @@ jQuery.extend({ if( array != null ){ var i = array.length; // The window, strings (and functions) also have 'length' - if( i == null || array.split || array.setInterval ) + if( i == null || typeof array == 'function' || array.setInterval ) ret[0] = array; else while( i ) |