From: Ariel Flesler Date: Tue, 29 Apr 2008 20:58:22 +0000 (+0000) Subject: jquery core: in $.makeArray, improved array-like detection, Safari reports nodelists... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=e9c620794f9a261cfff1918a0a4105d434730565;hp=f54d277df4a48173c5e53f3223d0e0d86a9bb6ac;p=jquery.git jquery core: in $.makeArray, improved array-like detection, Safari reports nodelists as 'function', so I got back to attribute sniffing. --- diff --git a/src/core.js b/src/core.js index c5fb865..c685b4e 100644 --- a/src/core.js +++ b/src/core.js @@ -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