diff options
author | Eirik Sletteberg <eiriksletteberg@gmail.com> | 2016-12-02 14:41:30 +0100 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2017-05-02 15:28:51 -0400 |
commit | 0b7246b6eeadfa9e2696e22f3230f6452f8129dc (patch) | |
tree | 02cd4f06e3944fc1417d4687cb3d14a12f3e8683 /ui/widgets | |
parent | 50efd6e1b063822c4a0ecb38f324ed3354f387c4 (diff) | |
download | jquery-ui-0b7246b6eeadfa9e2696e22f3230f6452f8129dc.tar.gz jquery-ui-0b7246b6eeadfa9e2696e22f3230f6452f8129dc.zip |
Core: Fix JQMIGRATE warning about `jQuery.expr[":"]`
This commit polyfills `jQuery.expr.pseudos` for old versions of jQuery.
Fixes #15185
Closes gh-1773
Diffstat (limited to 'ui/widgets')
-rw-r--r-- | ui/widgets/controlgroup.js | 2 | ||||
-rw-r--r-- | ui/widgets/tabs.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/widgets/controlgroup.js b/ui/widgets/controlgroup.js index 6f357948d..c79f3fcaf 100644 --- a/ui/widgets/controlgroup.js +++ b/ui/widgets/controlgroup.js @@ -150,7 +150,7 @@ return $.widget( "ui.controlgroup", { } ); } ); - this.childWidgets = $( $.unique( childWidgets ) ); + this.childWidgets = $( $.uniqueSort( childWidgets ) ); this._addClass( this.childWidgets, "ui-controlgroup-item" ); }, 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 ); } ) |