Skip to content

Commit

Permalink
Must attach the .selector to the new jQuery object.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin committed Nov 2, 2012
1 parent f651bf8 commit 68f001e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/traversing.js
Expand Up @@ -31,8 +31,9 @@ jQuery.fn.extend({
}

// Needed because $( selector, context ) becomes $( context ).find( selector )
ret = this.pushStack( jQuery.unique( ret ) );
ret.selector = ( this.selector ? this.selector + " " : "" ) + selector;
return this.pushStack( jQuery.unique( ret ) );
return ret;
},

has: function( target ) {
Expand Down

0 comments on commit 68f001e

Please sign in to comment.