8
0
Szymon Cofalik 9 лет назад
Родитель
Сommit
a2c803627a

+ 2 - 2
packages/ckeditor5-engine/src/model/operation/attributeoperation.js

@@ -136,9 +136,9 @@ export default class AttributeOperation extends Operation {
 			}
 
 			// If value to set is same as old value, don't do anything.
-			// By not returning `undefined`, this operation will be seen as `NoOperation` - that means
+			// By returning `undefined`, this operation will be seen as `NoOperation` - that means
 			// that it won't generate any events, etc. `AttributeOperation` with such parameters may be
-			// a result of Operational Transformation.
+			// a result of operational transformation.
 			if ( isEqual( this.oldValue, this.newValue ) ) {
 				return;
 			}

+ 2 - 2
packages/ckeditor5-engine/src/model/operation/moveoperation.js

@@ -79,7 +79,7 @@ export default class MoveOperation extends Operation {
 	}
 
 	/**
-	 * Position of the start of the moved range after it got moved. This may be different than
+	 * Returns the start position of the moved range after it got moved. This may be different than
 	 * {@link engine.model.operation.MoveOperation#targetPosition} in some cases, i.e. when a range is moved
 	 * inside the same parent but {@link engine.model.operation.MoveOperation#targetPosition targetPosition}
 	 * is after {@link engine.model.operation.MoveOperation#sourcePosition sourcePosition}.
@@ -90,7 +90,7 @@ export default class MoveOperation extends Operation {
 	 *		     targetPos	movedRangeStart
 	 *		     offset 6	offset 4
 	 *
-	 * @type {engine.model.Position}
+	 * @returns {engine.model.Position}
 	 */
 	getMovedRangeStart() {
 		return this.targetPosition._getTransformedByDeletion( this.sourcePosition, this.howMany );