jquery core: Reverting the changes added at [5480]
authorAriel Flesler <aflesler@gmail.com>
Wed, 7 May 2008 00:07:44 +0000 (00:07 +0000)
committerAriel Flesler <aflesler@gmail.com>
Wed, 7 May 2008 00:07:44 +0000 (00:07 +0000)
src/core.js

index 9752fb1..500e400 100644 (file)
@@ -1111,8 +1111,8 @@ jQuery.extend({
 
                if( array != null ){
                        var i = array.length;
-                       //the window, forms, strings and functions also have 'length'
-                       if( i == null || array.split || array.setInterval || array.call || array.elements )
+                       //the window, strings and functions also have 'length'
+                       if( i == null || array.split || array.setInterval || array.call )
                                ret[0] = array;
                        else
                                while( i )