Skip to content
Permalink
Browse files

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

…ports nodelists as 'function', so I got back to attribute sniffing.
  • Loading branch information
flesler committed Apr 29, 2008
1 parent f54d277 commit e9c620794f9a261cfff1918a0a4105d434730565
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit e9c6207

Please sign in to comment.
You can’t perform that action at this time.