Răsfoiți Sursa

Changed: removing commented code + docs.

Szymon Cofalik 9 ani în urmă
părinte
comite
504d077e95
1 a modificat fișierele cu 1 adăugiri și 10 ștergeri
  1. 1 10
      packages/ckeditor5-undo/src/undocommand.js

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

@@ -17,7 +17,7 @@ export default class UndoCommand extends Command {
 		super( editor );
 
 		/**
-		 * Batches which are saved by the command. They can be reversed.
+		 * Items that are pairs of batches which are saved by the command and model selection state at the moment of saving the batch.
 		 *
 		 * @private
 		 * @member {Array.<engine.treeModel.Batch>} undo.UndoCommand#_batchStack
@@ -31,15 +31,6 @@ export default class UndoCommand extends Command {
 	 * @param {engine.treeModel.Batch} batch Batch to add.
 	 */
 	addBatch( batch ) {
-		//this._batchStack.push( batch );
-		//this._batchSelection.set(
-		//	batch,
-		//	{
-		//		ranges: Array.from( this.editor.document.selection.getRanges() ),
-		//		isBackward: this.editor.document.selection.isBackward
-		//	}
-		//);
-
 		const selection = {
 			ranges: Array.from( this.editor.document.selection.getRanges() ),
 			isBackward: this.editor.document.selection.isBackward