Browse Source

Docs: further minor API docs corrections for document colors.

Marek Lewandowski 6 years ago
parent
commit
ccb284f7e7

+ 1 - 0
packages/ckeditor5-font/src/documentcolorscollection.js

@@ -68,6 +68,7 @@ export default class DocumentColorsCollection extends Collection {
 	 * Checks if object with given colors is present in collection.
 	 *
 	 * @param {String} color
+	 * @returns {Boolean}
 	 */
 	hasColor( color ) {
 		return !!this.find( item => item.color === color );

+ 1 - 2
packages/ckeditor5-font/src/ui/colortableview.js

@@ -167,7 +167,7 @@ export default class ColorTableView extends View {
 		this.items.add( this.staticColorsGrid );
 
 		if ( documentColorsCount ) {
-			// Create Label for Document Colors
+			// Create Label for Document Colors.
 			const bind = Template.bind( this.documentColors, this.documentColors );
 			const label = new LabelView( this.locale );
 
@@ -184,7 +184,6 @@ export default class ColorTableView extends View {
 
 			this.items.add( label );
 
-			// Create Document Colors
 			this.documentColorsGrid = this._createDocumentColorsGrid();
 			this.items.add( this.documentColorsGrid );
 		}