| @@ 2809-2833 (lines=25) @@ | ||
| 2806 | }; |
|
| 2807 | ||
| 2808 | jQuery.fn.extend( { |
|
| 2809 | find: function( selector ) { |
|
| 2810 | var i, |
|
| 2811 | ret = [], |
|
| 2812 | self = this, |
|
| 2813 | len = self.length; |
|
| 2814 | ||
| 2815 | if ( typeof selector !== "string" ) { |
|
| 2816 | return this.pushStack( jQuery( selector ).filter( function() { |
|
| 2817 | for ( i = 0; i < len; i++ ) { |
|
| 2818 | if ( jQuery.contains( self[ i ], this ) ) { |
|
| 2819 | return true; |
|
| 2820 | } |
|
| 2821 | } |
|
| 2822 | } ) ); |
|
| 2823 | } |
|
| 2824 | ||
| 2825 | for ( i = 0; i < len; i++ ) { |
|
| 2826 | jQuery.find( selector, self[ i ], ret ); |
|
| 2827 | } |
|
| 2828 | ||
| 2829 | // Needed because $( selector, context ) becomes $( context ).find( selector ) |
|
| 2830 | ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); |
|
| 2831 | ret.selector = this.selector ? this.selector + " " + selector : selector; |
|
| 2832 | return ret; |
|
| 2833 | }, |
|
| 2834 | filter: function( selector ) { |
|
| 2835 | return this.pushStack( winnow( this, selector || [], false ) ); |
|
| 2836 | }, |
|
| @@ 2770-2794 (lines=25) @@ | ||
| 2767 | }; |
|
| 2768 | ||
| 2769 | jQuery.fn.extend( { |
|
| 2770 | find: function( selector ) { |
|
| 2771 | var i, |
|
| 2772 | len = this.length, |
|
| 2773 | ret = [], |
|
| 2774 | self = this; |
|
| 2775 | ||
| 2776 | if ( typeof selector !== "string" ) { |
|
| 2777 | return this.pushStack( jQuery( selector ).filter( function() { |
|
| 2778 | for ( i = 0; i < len; i++ ) { |
|
| 2779 | if ( jQuery.contains( self[ i ], this ) ) { |
|
| 2780 | return true; |
|
| 2781 | } |
|
| 2782 | } |
|
| 2783 | } ) ); |
|
| 2784 | } |
|
| 2785 | ||
| 2786 | for ( i = 0; i < len; i++ ) { |
|
| 2787 | jQuery.find( selector, self[ i ], ret ); |
|
| 2788 | } |
|
| 2789 | ||
| 2790 | // Needed because $( selector, context ) becomes $( context ).find( selector ) |
|
| 2791 | ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); |
|
| 2792 | ret.selector = this.selector ? this.selector + " " + selector : selector; |
|
| 2793 | return ret; |
|
| 2794 | }, |
|
| 2795 | filter: function( selector ) { |
|
| 2796 | return this.pushStack( winnow( this, selector || [], false ) ); |
|
| 2797 | }, |
|
| @@ 2651-2675 (lines=25) @@ | ||
| 2648 | }; |
|
| 2649 | ||
| 2650 | jQuery.fn.extend({ |
|
| 2651 | find: function( selector ) { |
|
| 2652 | var i, |
|
| 2653 | len = this.length, |
|
| 2654 | ret = [], |
|
| 2655 | self = this; |
|
| 2656 | ||
| 2657 | if ( typeof selector !== "string" ) { |
|
| 2658 | return this.pushStack( jQuery( selector ).filter(function() { |
|
| 2659 | for ( i = 0; i < len; i++ ) { |
|
| 2660 | if ( jQuery.contains( self[ i ], this ) ) { |
|
| 2661 | return true; |
|
| 2662 | } |
|
| 2663 | } |
|
| 2664 | }) ); |
|
| 2665 | } |
|
| 2666 | ||
| 2667 | for ( i = 0; i < len; i++ ) { |
|
| 2668 | jQuery.find( selector, self[ i ], ret ); |
|
| 2669 | } |
|
| 2670 | ||
| 2671 | // Needed because $( selector, context ) becomes $( context ).find( selector ) |
|
| 2672 | ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); |
|
| 2673 | ret.selector = this.selector ? this.selector + " " + selector : selector; |
|
| 2674 | return ret; |
|
| 2675 | }, |
|
| 2676 | filter: function( selector ) { |
|
| 2677 | return this.pushStack( winnow(this, selector || [], false) ); |
|
| 2678 | }, |
|