浏览代码

Minor docs improvements.

Oskar Wróbel 8 年之前
父节点
当前提交
212363b0c3
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      packages/ckeditor5-undo/src/redocommand.js
  2. 1 1
      packages/ckeditor5-undo/src/undocommand.js

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

@@ -31,7 +31,7 @@ export default class RedoCommand extends BaseCommand {
 	execute() {
 		const item = this._stack.pop();
 
-		// All changes have to be done in one `enqueueChanges` callback so other listeners will not
+		// All changes have to be done in one `enqueueChange` callback so other listeners will not
 		// step between consecutive deltas, or won't do changes to the document before selection is properly restored.
 		this.editor.model.enqueueChange( () => {
 			const lastDelta = item.batch.deltas[ item.batch.deltas.length - 1 ];

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

@@ -34,7 +34,7 @@ export default class UndoCommand extends BaseCommand {
 
 		const item = this._stack.splice( batchIndex, 1 )[ 0 ];
 
-		// All changes has to be done in one `enqueueChanges` callback so other listeners will not
+		// All changes has to be done in one `enqueueChange` callback so other listeners will not
 		// step between consecutive deltas, or won't do changes to the document before selection is properly restored.
 		this.editor.model.enqueueChange( () => {
 			const undoingBatch = this._undo( item.batch );