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 4f30033 commit 95e2bdd
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/ballooneditorui.js
Expand Up @@ -28,20 +28,10 @@ export default class BalloonEditorUI 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;
}

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

/**
Expand Down Expand Up @@ -95,7 +85,7 @@ export default class BalloonEditorUI extends EditorUI {
* @inheritDoc
*/
destroy() {
this._view.destroy();
this.view.destroy();

super.destroy();
}
Expand Down

0 comments on commit 95e2bdd

Please sign in to comment.