aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/selector-sizzle.js2
-rw-r--r--src/traversing.js6
-rw-r--r--src/traversing/findFilter.js2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/selector-sizzle.js b/src/selector-sizzle.js
index 7d3926b1a..c091f1821 100644
--- a/src/selector-sizzle.js
+++ b/src/selector-sizzle.js
@@ -6,7 +6,7 @@ define([
jQuery.find = Sizzle;
jQuery.expr = Sizzle.selectors;
jQuery.expr[":"] = jQuery.expr.pseudos;
-jQuery.unique = Sizzle.uniqueSort;
+jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
jQuery.text = Sizzle.getText;
jQuery.isXMLDoc = Sizzle.isXML;
jQuery.contains = Sizzle.contains;
diff --git a/src/traversing.js b/src/traversing.js
index 9f3de7af1..c427792c1 100644
--- a/src/traversing.js
+++ b/src/traversing.js
@@ -84,7 +84,7 @@ jQuery.fn.extend({
}
}
- return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched );
+ return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
},
// Determine the position of an element within
@@ -109,7 +109,7 @@ jQuery.fn.extend({
add: function( selector, context ) {
return this.pushStack(
- jQuery.unique(
+ jQuery.uniqueSort(
jQuery.merge( this.get(), jQuery( selector, context ) )
)
);
@@ -183,7 +183,7 @@ jQuery.each({
if ( this.length > 1 ) {
// Remove duplicates
if ( !guaranteedUnique[ name ] ) {
- ret = jQuery.unique( ret );
+ ret = jQuery.uniqueSort( ret );
}
// Reverse order for parents* and prev-derivatives
diff --git a/src/traversing/findFilter.js b/src/traversing/findFilter.js
index 2c2f46161..0039b95b0 100644
--- a/src/traversing/findFilter.js
+++ b/src/traversing/findFilter.js
@@ -72,7 +72,7 @@ jQuery.fn.extend({
jQuery.find( selector, self[ i ], ret );
}
- return this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
+ return this.pushStack( len > 1 ? jQuery.uniqueSort( ret ) : ret );
},
filter: function( selector ) {
return this.pushStack( winnow(this, selector || [], false) );