Explorar o código

Code refactoring in Controller class.

Aleksander Nowodzinski %!s(int64=10) %!d(string=hai) anos
pai
achega
4ddbb98057
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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;
 				} );