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:
Ariel Flesler 2008-04-29 20:58:22 +00:00
parent f54d277df4
commit e9c620794f

View file

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