diff options
Diffstat (limited to 'src/traversing/findFilter.js')
-rw-r--r-- | src/traversing/findFilter.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/traversing/findFilter.js b/src/traversing/findFilter.js index fcb763034..57047e0c1 100644 --- a/src/traversing/findFilter.js +++ b/src/traversing/findFilter.js @@ -72,7 +72,10 @@ jQuery.fn.extend( { jQuery.find( selector, self[ i ], ret ); } - return this.pushStack( len > 1 ? jQuery.uniqueSort( ret ) : ret ); + // Needed because $( selector, context ) becomes $( context ).find( selector ) + ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); + ret.selector = this.selector ? this.selector + " " + selector : selector; + return ret; }, filter: function( selector ) { return this.pushStack( winnow( this, selector || [], false ) ); |