Browse Source

Merge pull request #90 from ckeditor/t/ckeditor5-engine/ot-followups

Other: `transformSets` is now exported as a function, not inside an object.
Piotr Jasiun 7 years ago
parent
commit
34810dee20
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/ckeditor5-undo/src/basecommand.js

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

@@ -8,7 +8,7 @@
  */
 
 import Command from '@ckeditor/ckeditor5-core/src/command';
-import transform from '@ckeditor/ckeditor5-engine/src/model/operation/transform';
+import { transformSets } from '@ckeditor/ckeditor5-engine/src/model/operation/transform';
 
 /**
  * Base class for undo feature commands: {@link module:undo/undocommand~UndoCommand} and {@link module:undo/redocommand~RedoCommand}.
@@ -142,7 +142,7 @@ export default class BaseCommand extends Command {
 			const nextBaseVersion = operationToUndo.baseVersion + 1;
 			const historyOperations = Array.from( document.history.getOperations( nextBaseVersion ) );
 
-			const transformedSets = transform.transformSets(
+			const transformedSets = transformSets(
 				[ operationToUndo.getReversed() ],
 				historyOperations,
 				{