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

View's addChildren no longer needed when child nodes are used in template.

Szymon Kupś преди 9 години
родител
ревизия
331e03c8b6
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. 0 3
      packages/ckeditor5-image/src/imagealternatetext/ui/alternatetextformview.js

+ 0 - 3
packages/ckeditor5-image/src/imagealternatetext/ui/alternatetextformview.js

@@ -50,9 +50,6 @@ export default class AlternateTextFormView extends View {
 		 */
 		this.cancelButtonView = this._createButton( t( 'Cancel' ), 'cancel' );
 
-		// Register child views.
-		this.addChildren( [ this.saveButtonView ] );
-
 		Template.extend( this.saveButtonView.template, {
 			attributes: {
 				class: [