Browse Source

Removed setRanges method from liveselection.js

Maciej Bukowski 8 years ago
parent
commit
7f2bdff8c2
1 changed files with 1 additions and 10 deletions
  1. 1 10
      packages/ckeditor5-engine/src/model/liveselection.js

+ 1 - 10
packages/ckeditor5-engine/src/model/liveselection.js

@@ -146,7 +146,7 @@ export default class LiveSelection extends Selection {
 	}
 
 	/**
-	 * Unbinds all events previously bound by document selection.
+	 * Unbinds all events previously bound by live selection.
 	 */
 	destroy() {
 		for ( let i = 0; i < this._ranges.length; i++ ) {
@@ -183,15 +183,6 @@ export default class LiveSelection extends Selection {
 
 	/**
 	 * @inheritDoc
-	 * TODO:
-	 */
-	_setRanges( newRanges, isLastBackward = false ) {
-		super._setRanges( newRanges, isLastBackward );
-		this.refreshAttributes();
-	}
-
-	/**
-	 * @inheritDoc
 	 */
 	setAttribute( key, value ) {
 		// Store attribute in parent element if the selection is collapsed in an empty node.