8
0
Просмотр исходного кода

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

Szymon Kupś 9 лет назад
Родитель
Сommit
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' );
 		this.cancelButtonView = this._createButton( t( 'Cancel' ), 'cancel' );
 
 
-		// Register child views.
-		this.addChildren( [ this.saveButtonView ] );
-
 		Template.extend( this.saveButtonView.template, {
 		Template.extend( this.saveButtonView.template, {
 			attributes: {
 			attributes: {
 				class: [
 				class: [