From 0b7246b6eeadfa9e2696e22f3230f6452f8129dc Mon Sep 17 00:00:00 2001 From: Eirik Sletteberg Date: Fri, 2 Dec 2016 14:41:30 +0100 Subject: Core: Fix JQMIGRATE warning about `jQuery.expr[":"]` This commit polyfills `jQuery.expr.pseudos` for old versions of jQuery. Fixes #15185 Closes gh-1773 --- ui/widgets/tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/widgets/tabs.js') diff --git a/ui/widgets/tabs.js b/ui/widgets/tabs.js index 58a65ebe8..14f94ae83 100644 --- a/ui/widgets/tabs.js +++ b/ui/widgets/tabs.js @@ -96,7 +96,7 @@ $.widget( "ui.tabs", { // Take disabling tabs via class attribute from HTML // into account and update option properly. if ( $.isArray( options.disabled ) ) { - options.disabled = $.unique( options.disabled.concat( + options.disabled = $.uniqueSort( options.disabled.concat( $.map( this.tabs.filter( ".ui-state-disabled" ), function( li ) { return that.tabs.index( li ); } ) -- cgit v1.2.3