aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-04-29 20:58:22 +0000
committerAriel Flesler <aflesler@gmail.com>2008-04-29 20:58:22 +0000
commite9c620794f9a261cfff1918a0a4105d434730565 (patch)
tree1b87cc89566ac45922bf1429e3deb1511a11997d
parentf54d277df4a48173c5e53f3223d0e0d86a9bb6ac (diff)
downloadjquery-e9c620794f9a261cfff1918a0a4105d434730565.tar.gz
jquery-e9c620794f9a261cfff1918a0a4105d434730565.zip
jquery core: in $.makeArray, improved array-like detection, Safari reports nodelists as 'function', so I got back to attribute sniffing.
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
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