From 1f510bc32210f14d4cf5a13979de871fe71f4b42 Mon Sep 17 00:00:00 2001 From: alaineman Date: Fri, 24 Mar 2017 17:24:37 +0100 Subject: [PATCH] Replace unique by uniqueSort According to the new jquery 3+ --- ui/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widget.js b/ui/widget.js index 726f70735c9..439e709d1ad 100644 --- a/ui/widget.js +++ b/ui/widget.js @@ -498,7 +498,7 @@ $.Widget.prototype = { for ( i = 0; i < classes.length; i++ ) { current = that.classesElementLookup[ classes[ i ] ] || $(); if ( options.add ) { - current = $( $.unique( current.get().concat( options.element.get() ) ) ); + current = $( $.uniqueSort( current.get().concat( options.element.get() ) ) ); } else { current = $( current.not( options.element ).get() ); }