Przeglądaj źródła

Internal: API docs corrections and renamed renderGrids to appendGrids.

Marek Lewandowski 6 lat temu
rodzic
commit
9d1425fa1f

+ 4 - 4
packages/ckeditor5-font/src/ui/colortableview.js

@@ -121,7 +121,7 @@ export default class ColorTableView extends View {
 		 * The property is loaded once the the parent dropdown is opened the first time.
 		 *
 		 * @readonly
-		 * @member {module:ui/colorgrid/colorgrid~ColorGridView/undefined}
+		 * @member {module:ui/colorgrid/colorgrid~ColorGridView|undefined}
 		 */
 
 		/**
@@ -131,7 +131,7 @@ export default class ColorTableView extends View {
 		 * The property is loaded once the the parent dropdown is opened the first time.
 		 *
 		 * @readonly
-		 * @member {module:ui/colorgrid/colorgrid~ColorGridView/undefined}
+		 * @member {module:ui/colorgrid/colorgrid~ColorGridView|undefined}
 		 */
 
 		/**
@@ -241,9 +241,9 @@ export default class ColorTableView extends View {
 	}
 
 	/**
-	 * Renders and appends {@link #staticColorsGrid} and {@link #documentColorsGrid} views.
+	 * Appends {@link #staticColorsGrid} and {@link #documentColorsGrid} views.
 	 */
-	renderGrids() {
+	appendGrids() {
 		if ( this.staticColorsGrid ) {
 			return;
 		}

+ 1 - 1
packages/ckeditor5-font/src/ui/colorui.js

@@ -133,7 +133,7 @@ export default class ColorUI extends Plugin {
 
 			dropdownView.on( 'change:isOpen', ( evt, name, isVisible ) => {
 				// Grids rendering is deferred (#6192).
-				dropdownView.colorTableView.renderGrids();
+				dropdownView.colorTableView.appendGrids();
 
 				if ( isVisible ) {
 					if ( documentColorsCount !== 0 ) {

+ 2 - 2
packages/ckeditor5-font/tests/ui/colortableview.js

@@ -79,7 +79,7 @@ describe( 'ColorTableView', () => {
 			documentColorsLabel: 'Document colors',
 			documentColorsCount: 4
 		} );
-		colorTableView.renderGrids();
+		colorTableView.appendGrids();
 		colorTableView.render();
 	} );
 
@@ -364,7 +364,7 @@ describe( 'ColorTableView', () => {
 					removeButtonLabel: 'Remove color',
 					documentColorsCount: 0
 				} );
-				colorTableView.renderGrids();
+				colorTableView.appendGrids();
 				colorTableView.render();
 			} );