From e9c620794f9a261cfff1918a0a4105d434730565 Mon Sep 17 00:00:00 2001 From: Ariel Flesler Date: Tue, 29 Apr 2008 20:58:22 +0000 Subject: [PATCH] jquery core: in $.makeArray, improved array-like detection, Safari reports nodelists as 'function', so I got back to attribute sniffing. --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index c5fb865ed..c685b4efd 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 -- 2.39.5