Remove unused code and properties from forked ControlsWidget

Bug: T311296
Change-Id: I8eb279f05901ace48cf9cc70ac8ce0ee6e9b40e1
This commit is contained in:
Thiemo Kreuz 2022-06-28 17:17:24 +02:00 committed by WMDE-Fisch
parent 2ff0f6d5f2
commit 269770fe76

View file

@ -17,7 +17,6 @@ ve.ui.MWTransclusionOutlineControlsWidget = function OoUiOutlineControlsWidget(
OO.ui.mixin.GroupElement.call( this, config );
// Properties
this.$movers = $( '<div>' );
this.addTemplateButton = new OO.ui.ButtonWidget( {
framed: false,
icon: 'puzzle',
@ -68,13 +67,14 @@ ve.ui.MWTransclusionOutlineControlsWidget = function OoUiOutlineControlsWidget(
this.addTemplateButton.$element,
this.addWikitextButton.$element
);
this.$movers.addClass( 've-ui-mwTransclusionOutlineControlsWidget-movers' )
var $movers = $( '<div>' )
.addClass( 've-ui-mwTransclusionOutlineControlsWidget-movers' )
.append(
this.upButton.$element,
this.downButton.$element,
this.removeButton.$element
);
this.$element.append( this.$icon, this.$group, this.$movers );
this.$element.append( this.$icon, this.$group, $movers );
};
/* Setup */