8
0
Pārlūkot izejas kodu

Minor improvement.

Piotrek Koszuliński 9 gadi atpakaļ
vecāks
revīzija
6133e3f52f
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. 2 3
      packages/ckeditor5-undo/src/undocommand.js

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

@@ -64,10 +64,9 @@ export default class UndoCommand extends Command {
 	 *
 	 * @protected
 	 * @fires undo.undoCommand#event:revert
-	 * @param {engine.treeModel.Batch} [batch] If set, batch that should be undone. If that batch is not on undo stack,
-	 * the command execution won't do anything. If not set, the last added batch will be undone.
+	 * @param {engine.treeModel.Batch} [batch] If set, batch that should be undone. If not set, the last added batch will be undone.
 	 */
-	_doExecute( batch = null ) {
+	_doExecute( batch ) {
 		let batchIndex;
 
 		// If batch is not given, set `batchIndex` to the last index in command stack.