Skip to content
Browse files

Must attach the .selector to the new jQuery object.

  • Loading branch information...
1 parent f651bf8 commit 68f001e709b6e6a3ac09d918991480aeef8eb9e5 @dmethvin dmethvin committed Nov 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/traversing.js
View
3 src/traversing.js
@@ -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 ) {

1 comment on commit 68f001e

@markelog
jQuery Foundation member

sorry about that :-(

Please sign in to comment.
Something went wrong with that request. Please try again.