8
0
فهرست منبع

Merge branch 't/96'

Piotr Jasiun 10 سال پیش
والد
کامیت
3cb7d16de9
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      packages/ckeditor5-engine/src/treemodel/range.js

+ 4 - 4
packages/ckeditor5-engine/src/treemodel/range.js

@@ -272,15 +272,15 @@ CKEDITOR.define( [ 'treemodel/position', 'treemodel/positioniterator', 'utils' ]
 		}
 
 		/**
-		 * Creates a new range spreading from specified position to the same position moved by given offset.
+		 * Creates a new range spreading from specified position to the same position moved by given shift.
 		 *
 		 * @param {treeModel.Position} position Beginning of the range.
-		 * @param {Number} offset How long the range should be.
+		 * @param {Number} shift How long the range should be.
 		 * @returns {treeModel.Range}
 		 */
-		static createFromPositionAndShift( position, offset ) {
+		static createFromPositionAndShift( position, shift ) {
 			let endPosition = position.clone();
-			endPosition.offset += offset;
+			endPosition.offset += shift;
 
 			return new Range( position, endPosition );
 		}