From 68f001e709b6e6a3ac09d918991480aeef8eb9e5 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Thu, 1 Nov 2012 21:40:01 -0400 Subject: [PATCH] Must attach the .selector to the new jQuery object. --- src/traversing.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/traversing.js b/src/traversing.js index 75a564f5c..e9b702c3d 100644 --- a/src/traversing.js +++ b/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 ) { -- 2.39.5