Fix #13349. No need to sort simple .find() cases.

This commit is contained in:
Dave Methvin 2013-01-29 20:48:48 -05:00
parent 451d0c37d9
commit a5c33fe1f7

View 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;
},