Procházet zdrojové kódy

Code refactoring in Controller class.

Aleksander Nowodzinski před 10 roky
rodič
revize
4ddbb98057
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  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;
 				} );