From e1090c3d2b2a988a5b41f1f1ed9f8d6dcae02200 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Mon, 4 May 2015 15:27:12 -0700 Subject: Selector: add jQuery.uniqueSort; deprecate jQuery.unique Fixes gh-2228 --- src/traversing/findFilter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/traversing') diff --git a/src/traversing/findFilter.js b/src/traversing/findFilter.js index eee3b6bee..128df2cb4 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) ); -- cgit v1.2.3