diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2013-01-29 20:48:48 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-01-29 20:48:48 -0500 |
commit | a5c33fe1f7872a20267ff69905561c8cc55fe3c1 (patch) | |
tree | 5aeaaee6bb8faa9b561bae6eeb88cb8f9aabc993 /src/traversing.js | |
parent | 451d0c37d9297598743b1372bf623d4b7d38e951 (diff) | |
download | jquery-a5c33fe1f7872a20267ff69905561c8cc55fe3c1.tar.gz jquery-a5c33fe1f7872a20267ff69905561c8cc55fe3c1.zip |
Fix #13349. No need to sort simple .find() cases.
Diffstat (limited to 'src/traversing.js')
-rw-r--r-- | src/traversing.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; }, |