Selaa lähdekoodia

Removed obsolete View.addChildren() calls from LinkFormView.

Aleksander Nowodzinski 9 vuotta sitten
vanhempi
commit
345ccdf1a2

+ 0 - 3
packages/ckeditor5-link/src/ui/linkformview.js

@@ -61,9 +61,6 @@ export default class LinkFormView extends View {
 		 */
 		this.unlinkButtonView = this._createButton( t( 'Unlink' ), 'unlink' );
 
-		// Register child views.
-		this.addChildren( [ this.urlInputView, this.saveButtonView, this.cancelButtonView, this.unlinkButtonView ] );
-
 		Template.extend( this.saveButtonView.template, {
 			attributes: {
 				class: [

+ 1 - 1
packages/ckeditor5-link/tests/ui/linkformview.js

@@ -12,7 +12,7 @@ describe( 'LinkFormView', () => {
 	beforeEach( () => {
 		view = new LinkFormView( { t: () => {} } );
 
-		view.init();
+		return view.init();
 	} );
 
 	describe( 'constructor()', () => {