aboutsummaryrefslogtreecommitdiffstats
path: root/src/core.js
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-08-13 18:16:14 +0000
committerAriel Flesler <aflesler@gmail.com>2008-08-13 18:16:14 +0000
commitec146fc73d0ea06bf29938e6427fad7bcaefd6ad (patch)
treebf5ec33160e0b6894430c4b3802c8d127c96e1bf /src/core.js
parent5dc7bb7233efee125922cc63e286c96a73b9326c (diff)
downloadjquery-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.js2
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 )