mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
jquery core: closes #3154. makeArray uses typeof instead of attribute sniffing for strings.
This commit is contained in:
parent
5dc7bb7233
commit
ec146fc73d
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user