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 ) // Needed because $( selector, context ) becomes $( context ).find( selector )
ret = this.pushStack( jQuery.unique( ret ) );
ret.selector = ( this.selector ? this.selector + " " : "" ) + selector; ret.selector = ( this.selector ? this.selector + " " : "" ) + selector;
return this.pushStack( jQuery.unique( ret ) ); return ret;
}, },


has: function( target ) { has: function( target ) {
Expand Down

1 comment on commit 68f001e

@markelog
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry about that :-(

Please sign in to comment.