Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Simplify view property in EditorUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Jan 24, 2019
1 parent 3f3c191 commit 180ada4
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/decouplededitorui.js
Expand Up @@ -29,10 +29,10 @@ export default class DecoupledEditorUI extends EditorUI {
/**
* The main (top–most) view of the editor UI.
*
* @private
* @member {module:ui/editorui/editoruiview~EditorUIView} #_view
* @readonly
* @member {module:ui/editorui/editoruiview~EditorUIView} #view
*/
this._view = view;
this.view = view;

/**
* A normalized `config.toolbar` object.
Expand All @@ -43,16 +43,6 @@ export default class DecoupledEditorUI extends EditorUI {
this._toolbarConfig = normalizeToolbarConfig( editor.config.get( 'toolbar' ) );
}

/**
* The main (top–most) view of the editor UI.
*
* @readonly
* @member {module:ui/editorui/editoruiview~EditorUIView} #view
*/
get view() {
return this._view;
}

/**
* Initializes the UI.
*/
Expand Down Expand Up @@ -89,7 +79,7 @@ export default class DecoupledEditorUI extends EditorUI {
* @inheritDoc
*/
destroy() {
this._view.destroy();
this.view.destroy();

super.destroy();
}
Expand Down

0 comments on commit 180ada4

Please sign in to comment.