From: Ariel Flesler Date: Wed, 13 Aug 2008 18:16:14 +0000 (+0000) Subject: jquery core: closes #3154. makeArray uses typeof instead of attribute sniffing for... X-Git-Tag: 1.3b1~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ec146fc73d0ea06bf29938e6427fad7bcaefd6ad;p=jquery.git jquery core: closes #3154. makeArray uses typeof instead of attribute sniffing for strings. --- 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 )