Commit e9c62079 authored by Ariel Flesler's avatar Ariel Flesler

jquery core: in $.makeArray, improved array-like detection, Safari reports...

jquery core: in $.makeArray, improved array-like detection, Safari reports nodelists as 'function', so I got back to attribute sniffing.
parent f54d277d
...@@ -1117,7 +1117,7 @@ jQuery.extend({ ...@@ -1117,7 +1117,7 @@ jQuery.extend({
if( array != undefined ){ if( array != undefined ){
var i = array.length; var i = array.length;
//the window, strings and functions also have '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 ) while( i )
ret[--i] = array[i]; ret[--i] = array[i];
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment