X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=resources%2Flib%2Fooui%2Foojs-ui-toolbars.js;h=72e4baba7964a70e35ac8c6d20087a6b570515e0;hp=9e4411e861a2cc19be430baa699c3cec2b659275;hb=a91c33af829521164ef9ad7e681ee2c6ddd064b8;hpb=db1f41172f6f7670b87c96bfb11a2cab07ac19ac diff --git a/resources/lib/ooui/oojs-ui-toolbars.js b/resources/lib/ooui/oojs-ui-toolbars.js index 9e4411e861..72e4baba79 100644 --- a/resources/lib/ooui/oojs-ui-toolbars.js +++ b/resources/lib/ooui/oojs-ui-toolbars.js @@ -1,12 +1,12 @@ /*! - * OOUI v0.30.4 + * OOUI v0.31.0 * https://www.mediawiki.org/wiki/OOUI * * Copyright 2011–2019 OOUI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2019-03-07T09:14:18Z + * Date: 2019-03-14T00:52:20Z */ ( function ( OO ) { @@ -687,9 +687,9 @@ OO.ui.Tool = function OoUiTool( toolGroup, config ) { // Mixin constructors OO.ui.mixin.IconElement.call( this, config ); OO.ui.mixin.FlaggedElement.call( this, config ); - OO.ui.mixin.TabIndexedElement.call( this, $.extend( {}, config, { + OO.ui.mixin.TabIndexedElement.call( this, $.extend( { $tabIndexed: this.$link - } ) ); + }, config ) ); // Events this.toolbar.connect( this, { @@ -1193,12 +1193,6 @@ OO.ui.ToolGroup.prototype.onDocumentMouseKeyUp = function ( e ) { this.onMouseKeyUp( e ); }; -// Deprecated alias since 0.28.3 -OO.ui.ToolGroup.prototype.onCapturedMouseKeyUp = function () { - OO.ui.warnDeprecation( 'onCapturedMouseKeyUp is deprecated, use onDocumentMouseKeyUp instead' ); - this.onDocumentMouseKeyUp.apply( this, arguments ); -}; - /** * Handle mouse up and key up events. * @@ -1986,18 +1980,18 @@ OO.ui.PopupToolGroup = function OoUiPopupToolGroup( toolbar, config ) { OO.ui.mixin.LabelElement.call( this, config ); OO.ui.mixin.TitledElement.call( this, config ); OO.ui.mixin.FlaggedElement.call( this, config ); - OO.ui.mixin.ClippableElement.call( this, $.extend( {}, config, { + OO.ui.mixin.ClippableElement.call( this, $.extend( { $clippable: this.$group - } ) ); - OO.ui.mixin.FloatableElement.call( this, $.extend( {}, config, { + }, config ) ); + OO.ui.mixin.FloatableElement.call( this, $.extend( { $floatable: this.$group, $floatableContainer: this.$handle, hideWhenOutOfView: false, verticalPosition: this.toolbar.position === 'bottom' ? 'above' : 'below' - } ) ); - OO.ui.mixin.TabIndexedElement.call( this, $.extend( {}, config, { + }, config ) ); + OO.ui.mixin.TabIndexedElement.call( this, $.extend( { $tabIndexed: this.$handle - } ) ); + }, config ) ); // Events this.$handle.on( { @@ -2073,12 +2067,6 @@ OO.ui.PopupToolGroup.prototype.onPopupDocumentMouseKeyUp = function ( e ) { this.setActive( false ); }; -// Deprecated alias since 0.28.3 -OO.ui.PopupToolGroup.prototype.onBlur = function () { - OO.ui.warnDeprecation( 'onBlur is deprecated, use onPopupDocumentMouseKeyUp instead' ); - this.onPopupDocumentMouseKeyUp.apply( this, arguments ); -}; - /** * @inheritdoc */