Parcourir la source

Minor code refactoring.

Aleksander Nowodzinski il y a 10 ans
Parent
commit
2ca40ca918
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      packages/ckeditor5-engine/src/ui/controller.js

+ 6 - 6
packages/ckeditor5-engine/src/ui/controller.js

@@ -94,20 +94,20 @@ CKEDITOR.define( [
 		}
 
 		_createRegion( regionName ) {
-			var collection = new Collection();
-			collection.name = regionName;
+			var controllers = new Collection();
+			controllers.name = regionName;
 
-			collection.on( 'add', ( evt, controller ) => {
+			controllers.on( 'add', ( evt, controller ) => {
 				this.view.add( controller.view, regionName );
 			} );
 
-			collection.on( 'remove', ( evt, controller ) => {
+			controllers.on( 'remove', ( evt, controller ) => {
 				this.view.remove( controller.view, regionName );
 			} );
 
-			this.regions.add( collection );
+			this.regions.add( controllers );
 
-			return collection;
+			return controllers;
 		}
 	}