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

Removed some orphans. Don't even know how they got there.

Aleksander Nowodzinski 9 лет назад
Родитель
Сommit
cc2e0d1146

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

@@ -165,9 +165,6 @@ export default class LinkFormView extends View {
 			// Register the view in the focus tracker.
 			this.focusTracker.add( v.element );
 		} );
-
-		// Register child views. It tells #destroy() to handle theme.
-		this.addChildren( childViews );
 	}
 
 	/**

+ 0 - 13
packages/ckeditor5-link/tests/ui/linkformview.js

@@ -76,19 +76,6 @@ describe( 'LinkFormView', () => {
 			sinon.assert.calledWithExactly( spy.getCall( 3 ), view.unlinkButtonView.element );
 		} );
 
-		it( 'should register child views as children', () => {
-			const spy = testUtils.sinon.spy( LinkFormView.prototype, 'addChildren' );
-
-			view = new LinkFormView( { t: () => {} } );
-
-			sinon.assert.calledWithExactly( spy, [
-				view.urlInputView,
-				view.saveButtonView,
-				view.cancelButtonView,
-				view.unlinkButtonView
-			] );
-		} );
-
 		it( 'should fire `cancel` event on cancelButtonView#execute', () => {
 			const spy = sinon.spy();