Преглед на файлове

Aligned EditorUIView to the View#render API.

Aleksander Nowodzinski преди 8 години
родител
ревизия
212b253948
променени са 2 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 3 2
      packages/ckeditor5-ui/src/editorui/editoruiview.js
  2. 1 1
      packages/ckeditor5-ui/tests/editorui/editoruiview.js

+ 3 - 2
packages/ckeditor5-ui/src/editorui/editoruiview.js

@@ -46,9 +46,10 @@ export default class EditorUIView extends View {
 	/**
 	 * @inheritDoc
 	 */
-	init() {
+	render() {
+		super.render();
+
 		this._renderBodyCollection();
-		super.init();
 	}
 
 	/**

+ 1 - 1
packages/ckeditor5-ui/tests/editorui/editoruiview.js

@@ -19,7 +19,7 @@ describe( 'EditorUIView', () => {
 		locale = new Locale( 'en' );
 		view = new EditorUIView( locale );
 
-		return view.init();
+		view.render();
 	} );
 
 	describe( 'constructor()', () => {