Преглед на файлове

Added missing comments.

Aleksander Nowodzinski преди 10 години
родител
ревизия
24c0d67361
променени са 2 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 2 0
      packages/ckeditor5-ui/src/ui/controller.js
  2. 4 0
      packages/ckeditor5-ui/src/ui/view.js

+ 2 - 0
packages/ckeditor5-ui/src/ui/controller.js

@@ -56,6 +56,8 @@ CKEDITOR.define( [ 'collection', 'model' ], function( Collection, Model ) {
 		 * @returns
 		 */
 		destroy() {
+			// Note: Because this.view.destroy() can by sync as well as async,
+			// it is wrapped in promise.
 			return Promise.resolve()
 				.then( () => {
 					return this.view.destroy();

+ 4 - 0
packages/ckeditor5-ui/src/ui/view.js

@@ -268,6 +268,10 @@ CKEDITOR.define( [
 			}
 		}
 
+		/**
+		 * @param
+		 * @returns
+		 */
 		append( view, regionName ) {
 			this.regions.get( regionName ).append( view );
 		}