Parcourir la source

Improved API docs and code style a bit.

Piotrek Koszuliński il y a 7 ans
Parent
commit
4bdbe602e3
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      packages/ckeditor5-alignment/src/alignmentcommand.js

+ 3 - 3
packages/ckeditor5-alignment/src/alignmentcommand.js

@@ -30,13 +30,13 @@ export default class AlignmentCommand extends Command {
 		this.isEnabled = !!firstBlock && this._canBeAligned( firstBlock );
 
 		/**
-		 * A value of current block's alignment.
+		 * A value of the current block's alignment.
 		 *
 		 * @observable
 		 * @readonly
 		 * @member {String} #value
 		 */
-		this.value = this.isEnabled && firstBlock.hasAttribute( 'alignment' ) ? firstBlock.getAttribute( 'alignment' ) : 'left';
+		this.value = ( this.isEnabled && firstBlock.hasAttribute( 'alignment' ) ) ? firstBlock.getAttribute( 'alignment' ) : 'left';
 	}
 
 	/**
@@ -45,7 +45,7 @@ export default class AlignmentCommand extends Command {
 	 * it will remove the attribute from the selected blocks.
 	 *
 	 * @param {Object} [options] Options for the executed command.
-	 * @param {String} [options.value] a value to apply.
+	 * @param {String} [options.value] The value to apply.
 	 * @fires execute
 	 */
 	execute( options = {} ) {