From: Dave Methvin Date: Wed, 30 Jan 2013 01:48:48 +0000 (-0500) Subject: Fix #13349. No need to sort simple .find() cases. X-Git-Tag: 2.0.0b2~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a5c33fe1f7872a20267ff69905561c8cc55fe3c1;p=jquery.git Fix #13349. No need to sort simple .find() cases. --- 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; },