소스 검색

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: [