Skip to content
Permalink
Browse files

jquery core: closes #3154. makeArray uses typeof instead of attribute…

… sniffing for strings.
  • Loading branch information
flesler committed Aug 13, 2008
1 parent 5dc7bb7 commit ec146fc73d0ea06bf29938e6427fad7bcaefd6ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 )

0 comments on commit ec146fc

Please sign in to comment.
You can’t perform that action at this time.