@@ 3126-3153 (lines=28) @@ | ||
3123 | elem.contentDocument || elem.contentWindow.document : |
|
3124 | jQuery.merge( [], elem.childNodes ); |
|
3125 | } |
|
3126 | }, function( name, fn ) { |
|
3127 | jQuery.fn[ name ] = function( until, selector ) { |
|
3128 | var ret = jQuery.map( this, fn, until ); |
|
3129 | ||
3130 | if ( name.slice( -5 ) !== "Until" ) { |
|
3131 | selector = until; |
|
3132 | } |
|
3133 | ||
3134 | if ( selector && typeof selector === "string" ) { |
|
3135 | ret = jQuery.filter( selector, ret ); |
|
3136 | } |
|
3137 | ||
3138 | if ( this.length > 1 ) { |
|
3139 | ||
3140 | // Remove duplicates |
|
3141 | if ( !guaranteedUnique[ name ] ) { |
|
3142 | ret = jQuery.uniqueSort( ret ); |
|
3143 | } |
|
3144 | ||
3145 | // Reverse order for parents* and prev-derivatives |
|
3146 | if ( rparentsprev.test( name ) ) { |
|
3147 | ret = ret.reverse(); |
|
3148 | } |
|
3149 | } |
|
3150 | ||
3151 | return this.pushStack( ret ); |
|
3152 | }; |
|
3153 | } ); |
|
3154 | var rnotwhite = ( /\S+/g ); |
|
3155 | ||
3156 |
@@ 3076-3103 (lines=28) @@ | ||
3073 | contents: function( elem ) { |
|
3074 | return elem.contentDocument || jQuery.merge( [], elem.childNodes ); |
|
3075 | } |
|
3076 | }, function( name, fn ) { |
|
3077 | jQuery.fn[ name ] = function( until, selector ) { |
|
3078 | var matched = jQuery.map( this, fn, until ); |
|
3079 | ||
3080 | if ( name.slice( -5 ) !== "Until" ) { |
|
3081 | selector = until; |
|
3082 | } |
|
3083 | ||
3084 | if ( selector && typeof selector === "string" ) { |
|
3085 | matched = jQuery.filter( selector, matched ); |
|
3086 | } |
|
3087 | ||
3088 | if ( this.length > 1 ) { |
|
3089 | ||
3090 | // Remove duplicates |
|
3091 | if ( !guaranteedUnique[ name ] ) { |
|
3092 | jQuery.uniqueSort( matched ); |
|
3093 | } |
|
3094 | ||
3095 | // Reverse order for parents* and prev-derivatives |
|
3096 | if ( rparentsprev.test( name ) ) { |
|
3097 | matched.reverse(); |
|
3098 | } |
|
3099 | } |
|
3100 | ||
3101 | return this.pushStack( matched ); |
|
3102 | }; |
|
3103 | } ); |
|
3104 | var rnotwhite = ( /\S+/g ); |
|
3105 | ||
3106 |