( obj )
| 850 | }); |
| 851 | |
| 852 | function isArraylike( obj ) { |
| 853 | var length = obj.length, |
| 854 | type = jQuery.type( obj ); |
| 855 | |
| 856 | if ( jQuery.isWindow( obj ) ) { |
| 857 | return false; |
| 858 | } |
| 859 | |
| 860 | if ( obj.nodeType === 1 && length ) { |
| 861 | return true; |
| 862 | } |
| 863 | |
| 864 | return type === "array" || type !== "function" && |
| 865 | ( length === 0 || |
| 866 | typeof length === "number" && length > 0 && ( length - 1 ) in obj ); |
| 867 | } |
| 868 | |
| 869 | // All jQuery objects should point back to these |
| 870 | rootjQuery = jQuery(document); |