jquery core: in $.makeArray, improved array-like detection, Safari reports nodelists as 'function', so I got back to attribute sniffing.
This commit is contained in:
parent
f54d277df4
commit
e9c620794f
|
@ -1117,7 +1117,7 @@ jQuery.extend({
|
|||
if( array != undefined ){
|
||||
var i = array.length;
|
||||
//the window, strings and functions also have 'length'
|
||||
if( i != undefined && typeof array == 'object' && array != window )
|
||||
if( i != null && !array.split && array != window && !array.call )
|
||||
while( i )
|
||||
ret[--i] = array[i];
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue