mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 23:05:35 +00:00
Merge "ve.init.mw.DesktopArticleTarget: Remove some unnecessary toolbar setup code"
This commit is contained in:
commit
ba5589f801
|
@ -458,12 +458,6 @@ ve.init.mw.DesktopArticleTarget.prototype.activate = function ( dataPromise ) {
|
|||
surface.setReadOnly( true );
|
||||
// setSurface creates dummy toolbar
|
||||
this.setSurface( surface );
|
||||
// Disconnect the tool factory listeners so the toolbar
|
||||
// doesn't start showing new tools as they load, too
|
||||
// much flickering
|
||||
this.getToolbar().getToolFactory().off( 'register' );
|
||||
// Disable all the tools
|
||||
this.getToolbar().updateToolState();
|
||||
|
||||
this.load( dataPromise );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue