浏览代码

Remove: LiveSelection listeners from Document.

Szymon Cofalik 9 年之前
父节点
当前提交
ec10eae144
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      packages/ckeditor5-engine/src/model/document.js

+ 0 - 9
packages/ckeditor5-engine/src/model/document.js

@@ -105,15 +105,6 @@ export default class Document {
 		 */
 		 */
 		this._roots = new Map();
 		this._roots = new Map();
 
 
-		// Add events that will update selection attributes.
-		this.selection.on( 'change:range', () => {
-			this.selection._updateAttributes();
-		} );
-
-		this.on( 'changesDone', () => {
-			this.selection._updateAttributes();
-		} );
-
 		// Add events that will ensure selection correctness.
 		// Add events that will ensure selection correctness.
 		this.selection.on( 'change:range', () => {
 		this.selection.on( 'change:range', () => {
 			for ( let range of this.selection.getRanges() ) {
 			for ( let range of this.selection.getRanges() ) {