mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Rely on selection changed event for updating controls
This event makes other calls redundant because it's always sent from setPage and onReplacePart. Bug: T311296 Change-Id: If214a713ed7299320d499c3e5687eda013fe0aab
This commit is contained in:
parent
699c73893d
commit
7d023e2dce
|
@ -189,7 +189,6 @@ ve.ui.MWTransclusionDialog.prototype.onReplacePart = function ( removed, added )
|
|||
this.autoExpandSidebar();
|
||||
this.updateModeActionState();
|
||||
this.updateActionSet();
|
||||
this.bookletLayout.refreshControls();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -450,9 +450,6 @@ ve.ui.MWTwoPaneTransclusionDialogLayout.prototype.setPage = function ( name ) {
|
|||
}
|
||||
page.setActive( true );
|
||||
this.stackLayout.setItem( page );
|
||||
|
||||
this.refreshControls();
|
||||
|
||||
this.emit( 'set', page );
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue