8
0
Просмотр исходного кода

Changed: `MergeDelta` and `SplitDelta` should create sticky move operations on reverse.

Szymon Cofalik 8 лет назад
Родитель
Сommit
67206cd791

+ 0 - 13
packages/ckeditor5-engine/src/model/delta/mergedelta.js

@@ -40,19 +40,6 @@ export default class MergeDelta extends Delta {
 		return this._removeOperation ? this._removeOperation.sourcePosition : null;
 	}
 
-	/**
-	 * @inheritDoc
-	 */
-	getReversed() {
-		const delta = super.getReversed();
-
-		if ( delta.operations.length > 0 ) {
-			delta.operations[ 1 ].isSticky = false;
-		}
-
-		return delta;
-	}
-
 	/**
 	 * Operation in this delta that removes the node after merge position (which will be empty at that point) or
 	 * `null` if the delta has no operations. Note, that after {@link module:engine/model/delta/transform~transform transformation}

+ 0 - 13
packages/ckeditor5-engine/src/model/delta/splitdelta.js

@@ -39,19 +39,6 @@ export default class SplitDelta extends Delta {
 		return this._moveOperation ? this._moveOperation.sourcePosition : null;
 	}
 
-	/**
-	 * @inheritDoc
-	 */
-	getReversed() {
-		const delta = super.getReversed();
-
-		if ( delta.operations.length > 0 ) {
-			delta.operations[ 0 ].isSticky = true;
-		}
-
-		return delta;
-	}
-
 	/**
 	 * Operation in the delta that adds to model an element into which split nodes will be moved, or `null` if
 	 * there are no operations in the delta.