]> source.dussan.org Git - jquery.git/commitdiff
Fix #13349. No need to sort simple .find() cases.
authorDave Methvin <dave.methvin@gmail.com>
Wed, 30 Jan 2013 01:48:48 +0000 (20:48 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Wed, 30 Jan 2013 01:48:48 +0000 (20:48 -0500)
src/traversing.js

index 8295317fbead73ee55085af6071cdc9bec5c36c6..ff590504f0940a196df37b064fd3f74ec5c2796d 100644 (file)
@@ -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;
        },