From a5c33fe1f7872a20267ff69905561c8cc55fe3c1 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Tue, 29 Jan 2013 20:48:48 -0500 Subject: [PATCH] Fix #13349. No need to sort simple .find() cases. --- src/traversing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/traversing.js b/src/traversing.js index 8295317fb..ff590504f 100644 --- a/src/traversing.js +++ b/src/traversing.js @@ -32,7 +32,7 @@ jQuery.fn.extend({ } // Needed because $( selector, context ) becomes $( context ).find( selector ) - matched = this.pushStack( jQuery.unique( matched ) ); + matched = this.pushStack( l > 1 ? jQuery.unique( matched ) : matched ); matched.selector = ( this.selector ? this.selector + " " : "" ) + selector; return matched; }, -- 2.39.5