From ec146fc73d0ea06bf29938e6427fad7bcaefd6ad Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Wed, 13 Aug 2008 18:16:14 +0000 Subject: [PATCH] jquery core: closes #3154. makeArray uses typeof instead of attribute sniffing for strings. --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index d910f99..64c8331 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 ) -- 1.7.10.4