Explorar o código

Simplify view property in `EditorUI`.

Krzysztof Krztoń %!s(int64=7) %!d(string=hai) anos
pai
achega
d8f054f83e
Modificáronse 1 ficheiros con 4 adicións e 14 borrados
  1. 4 14
      packages/ckeditor5-editor-inline/src/inlineeditorui.js

+ 4 - 14
packages/ckeditor5-editor-inline/src/inlineeditorui.js

@@ -29,10 +29,10 @@ export default class InlineEditorUI 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.
@@ -43,16 +43,6 @@ export default class InlineEditorUI 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;
-	}
-
 	/**
 	 * @inheritDoc
 	 */
@@ -118,7 +108,7 @@ export default class InlineEditorUI extends EditorUI {
 	 * @inheritDoc
 	 */
 	destroy() {
-		this._view.destroy();
+		this.view.destroy();
 
 		super.destroy();
 	}