Răsfoiți Sursa

Docs: Cleaned ToggleAttributeCommand docs up.

Aleksander Nowodzinski 8 ani în urmă
părinte
comite
b7f22bd470

+ 1 - 4
packages/ckeditor5-core/src/command/toggleattributecommand.js

@@ -43,9 +43,6 @@ export default class ToggleAttributeCommand extends Command {
 		 */
 		 */
 		this.set( 'value', false );
 		this.set( 'value', false );
 
 
-		// Refresh the value and state of the command on #changesDone to make sure that
-		// the correct state of the command is set initially.
-		// https://github.com/ckeditor/ckeditor5-core/issues/50
 		this.listenTo( editor.document, 'changesDone', () => {
 		this.listenTo( editor.document, 'changesDone', () => {
 			this.refreshValue();
 			this.refreshValue();
 			this.refreshState();
 			this.refreshState();
@@ -53,7 +50,7 @@ export default class ToggleAttributeCommand extends Command {
 	}
 	}
 
 
 	/**
 	/**
-	 * Updates command's {@link #value value} based on current selection.
+	 * Updates command's {@link #value value} based on the current selection.
 	 */
 	 */
 	refreshValue() {
 	refreshValue() {
 		this.value = this.editor.document.selection.hasAttribute( this.attributeKey );
 		this.value = this.editor.document.selection.hasAttribute( this.attributeKey );