Browse Source

Removed setRanges method from liveselection.js

Maciej Bukowski 8 năm trước cách đây
mục cha
commit
7f2bdff8c2
1 tập tin đã thay đổi với 1 bổ sung10 xóa
  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++ ) {
@@ -181,15 +181,6 @@ export default class LiveSelection extends Selection {
 		return super.getLastRange() || this._document._getDefaultRange();
 	}
 
-	/**
-	 * @inheritDoc
-	 * TODO:
-	 */
-	_setRanges( newRanges, isLastBackward = false ) {
-		super._setRanges( newRanges, isLastBackward );
-		this.refreshAttributes();
-	}
-
 	/**
 	 * @inheritDoc
 	 */