ソースを参照

Code refactoring in Controller class.

Aleksander Nowodzinski 10 年 前
コミット
4ddbb98057
1 ファイル変更1 行追加3 行削除
  1. 1 3
      packages/ckeditor5-ui/src/ui/controller.js

+ 1 - 3
packages/ckeditor5-ui/src/ui/controller.js

@@ -45,9 +45,7 @@ CKEDITOR.define( [ 'collection', 'model' ], function( Collection, Model ) {
 				.then( () => {
 					return controller.init();
 				} )
-				.then( () => {
-					this.view.append( controller.view, regionName );
-				} )
+				.then( this.view.append.bind( this.view, controller.view, regionName ) )
 				.then( () => {
 					return controller;
 				} );