mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Remove unused code and properties from forked ControlsWidget
Bug: T311296 Change-Id: I8eb279f05901ace48cf9cc70ac8ce0ee6e9b40e1
This commit is contained in:
parent
2ff0f6d5f2
commit
269770fe76
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue