Browse Source

Fixed order of methods.

Maciej Bukowski 7 years ago
parent
commit
3d95f01caa
1 changed files with 12 additions and 12 deletions
  1. 12 12
      packages/ckeditor5-engine/src/model/selection.js

+ 12 - 12
packages/ckeditor5-engine/src/model/selection.js

@@ -367,18 +367,6 @@ export default class Selection {
 	}
 
 	/**
-	 * Deletes ranges from internal range array. Uses {@link #_popRange _popRange} to
-	 * ensure proper ranges removal.
-	 *
-	 * @private
-	 */
-	_removeAllRanges() {
-		while ( this._ranges.length > 0 ) {
-			this._popRange();
-		}
-	}
-
-	/**
 	 * Moves {@link module:engine/model/selection~Selection#focus} to the specified location.
 	 *
 	 * The location can be specified in the same form as {@link module:engine/model/position~Position.createAt} parameters.
@@ -641,6 +629,18 @@ export default class Selection {
 	}
 
 	/**
+	 * Deletes ranges from internal range array. Uses {@link #_popRange _popRange} to
+	 * ensure proper ranges removal.
+	 *
+	 * @protected
+	 */
+	_removeAllRanges() {
+		while ( this._ranges.length > 0 ) {
+			this._popRange();
+		}
+	}
+
+	/**
 	 * Removes most recently added range from the selection.
 	 *
 	 * @protected