diff options
author | James D. Forrester <jforrester@wikimedia.org> | 2020-05-06 09:27:11 -0700 |
---|---|---|
committer | James D. Forrester <jforrester@wikimedia.org> | 2020-05-19 14:42:15 -0700 |
commit | fac00338258a4fc952409f175bcd5a9875080203 (patch) | |
tree | 862808f048a122514c452dabd880da8d8b8fce7e /resources/lib/ooui/oojs-ui-widgets.js | |
parent | b33e5ffb3215b3c4a17befcc3307e072617395fd (diff) | |
download | mediawikicore-fac00338258a4fc952409f175bcd5a9875080203.tar.gz mediawikicore-fac00338258a4fc952409f175bcd5a9875080203.zip |
Update OOUI to v0.39.0
Release notes:
https://gerrit.wikimedia.org/g/oojs/ui/+/v0.39.0/History.md
Bug: T164958
Bug: T251610
Change-Id: I9b1d97ee5ce3f15ead1bdc331c16f895d32e2fbd
Depends-On: I4078ade627689a9738e4efa5812227a042173c54
Diffstat (limited to 'resources/lib/ooui/oojs-ui-widgets.js')
-rw-r--r-- | resources/lib/ooui/oojs-ui-widgets.js | 44 |
1 files changed, 3 insertions, 41 deletions
diff --git a/resources/lib/ooui/oojs-ui-widgets.js b/resources/lib/ooui/oojs-ui-widgets.js index 77965a346d72..a2b589eb6d55 100644 --- a/resources/lib/ooui/oojs-ui-widgets.js +++ b/resources/lib/ooui/oojs-ui-widgets.js @@ -1,12 +1,12 @@ /*! - * OOUI v0.38.1 + * OOUI v0.39.0 * https://www.mediawiki.org/wiki/OOUI * * Copyright 2011–2020 OOUI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2020-05-01T20:01:46Z + * Date: 2020-05-06T16:18:36Z */ ( function ( OO ) { @@ -789,16 +789,7 @@ OO.ui.mixin.LookupElement.prototype.onLookupMenuToggle = function ( visible ) { * @param {OO.ui.MenuOptionWidget} item Selected item */ OO.ui.mixin.LookupElement.prototype.onLookupMenuChoose = function ( item ) { - if ( this.onLookupMenuItemChoose ) { - // @since 0.35.2 - OO.ui.warnDeprecation( - 'onLookupMenuItemChoose is deprecated. ' + - 'Use onLookupMenuChoose instead.' - ); - this.onLookupMenuItemChoose( item ); - } else { - this.setValue( item.getData() ); - } + this.setValue( item.getData() ); }; /** @@ -4219,35 +4210,6 @@ OO.ui.TagItemWidget.prototype.isFixed = function () { }; /** - * @inheritdoc - */ -OO.ui.TagItemWidget.prototype.setDisabled = function ( state ) { - if ( state && this.elementGroup && !this.elementGroup.isDisabled() ) { - OO.ui.warnDeprecation( 'TagItemWidget#setDisabled: Disabling individual items is deprecated and will result in inconsistent behavior. Use #setFixed instead. See T193571.' ); - } - // Parent method - OO.ui.TagItemWidget.super.prototype.setDisabled.call( this, state ); - if ( - !state && - // Verify we have a group, and that the widget is ready - this.toggleDraggable && this.elementGroup && - !this.isFixed() && - !this.elementGroup.isDraggable() - ) { - // Only enable the draggable state of the item if the - // entire group is draggable to begin with, and if the - // item is not fixed - this.toggleDraggable( !state ); - } - - if ( this.closeButton ) { - this.closeButton.setDisabled( state ); - } - - return this; -}; - -/** * Handle removal of the item * * This is mainly for extensibility concerns, so other children |