aboutsummaryrefslogtreecommitdiffstats
path: root/src/traversing.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2012-10-16 11:52:48 -0400
committerTimmy Willison <timmywillisn@gmail.com>2012-10-16 11:54:54 -0400
commit420dcc58423dcfd3848fb62586da184b914cff22 (patch)
tree68d38856756ced05f14f9a0ce1671eac850d8a9b /src/traversing.js
parentce5784a480ee6dc355fc961ab8bcd5828dabcbb6 (diff)
downloadjquery-420dcc58423dcfd3848fb62586da184b914cff22.tar.gz
jquery-420dcc58423dcfd3848fb62586da184b914cff22.zip
Update Sizzle: allows disconnected sorting. Change add to always sort with added nodes, even when disconnected.
Diffstat (limited to 'src/traversing.js')
-rw-r--r--src/traversing.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/traversing.js b/src/traversing.js
index d92bec4cb..365bb2947 100644
--- a/src/traversing.js
+++ b/src/traversing.js
@@ -132,9 +132,7 @@ jQuery.fn.extend({
jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
all = jQuery.merge( this.get(), set );
- return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
- all :
- jQuery.unique( all ) );
+ return this.pushStack( jQuery.unique(all) );
},
addBack: function( selector ) {