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 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 )