瀏覽代碼

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