8
0
Piotrek Koszuliński 9 лет назад
Родитель
Сommit
4ce75be15a

+ 1 - 1
packages/ckeditor5-undo/src/basecommand.js

@@ -19,7 +19,7 @@ export default class UndoCommand extends Command {
 		super( editor );
 
 		/**
-		 * Items stored by command. These are pairs of:
+		 * Items stored by the command. These are pairs of:
 		 *
 		 * * {@link engine.model.Batch batch} saved by the command and,
 		 * * {@link engine.model.Selection selection} state at the moment of saving the batch.

+ 1 - 0
packages/ckeditor5-undo/src/redocommand.js

@@ -17,6 +17,7 @@ import { transformDelta as transformDelta } from './basecommand.js';
  * undone batch was applied.
  *
  * @memberOf undo
+ * @extends undo.BaseCommand
  */
 export default class RedoCommand extends BaseCommand {
 	/**

+ 2 - 1
packages/ckeditor5-undo/src/undocommand.js

@@ -17,6 +17,7 @@ import { transformDelta as transformDelta } from './basecommand.js';
  * undone batch was applied.
  *
  * @memberOf undo
+ * @extends undo.BaseCommand
  */
 export default class UndoCommand extends BaseCommand {
 	/**
@@ -25,7 +26,7 @@ export default class UndoCommand extends BaseCommand {
 	 * Then, restores {@link engine.model.Document#selection document selection}.
 	 *
 	 * @protected
-	 * @fires undo.undoCommand#event:revert
+	 * @fires undo.UndoCommand#event:revert
 	 * @param {engine.model.Batch} [batch] Batch that should be undone. If not set, the last added batch will be undone.
 	 */
 	_doExecute( batch = null ) {

+ 0 - 2
packages/ckeditor5-undo/src/undoengine.js

@@ -32,7 +32,6 @@ export default class UndoEngine extends Feature {
 		 * @private
 		 * @member {undo.UndoEngineCommand} undo.UndoEngine#_undoCommand
 		 */
-		this._undoCommand = null;
 
 		/**
 		 * Command which manages redo {@link engine.model.Batch batches} stack (history).
@@ -41,7 +40,6 @@ export default class UndoEngine extends Feature {
 		 * @private
 		 * @member {undo.UndoEngineCommand} undo.UndoEngine#_redoCommand
 		 */
-		this._redoCommand = null;
 
 		/**
 		 * Keeps track of which batch has been registered in Undo.