]> source.dussan.org Git - jquery.git/commitdiff
jquery core: in $.makeArray, improved array-like detection, Safari reports nodelists...
authorAriel Flesler <aflesler@gmail.com>
Tue, 29 Apr 2008 20:58:22 +0000 (20:58 +0000)
committerAriel Flesler <aflesler@gmail.com>
Tue, 29 Apr 2008 20:58:22 +0000 (20:58 +0000)
src/core.js

index c5fb865ed4645c3084092e4b2bf5b5c05e9d8e9d..c685b4efdeb6250242057b0d96a57edffb9f2936 100644 (file)
@@ -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