Browse Source

Rename Document#_setSelectionAttributes to Document#_updateSelectionAttributes.

Szymon Cofalik 9 năm trước cách đây
mục cha
commit
7f0278c6d4
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      packages/ckeditor5-engine/src/treemodel/document.js

+ 3 - 3
packages/ckeditor5-engine/src/treemodel/document.js

@@ -78,11 +78,11 @@ export default class Document {
 		this.selection = new Selection();
 
 		this.selection.on( 'update', () => {
-			this._setSelectionAttributes();
+			this._updateSelectionAttributes();
 		} );
 
 		this.on( 'changesDone', () => {
-			this._setSelectionAttributes();
+			this._updateSelectionAttributes();
 		} );
 
 		this.schema = new Schema();
@@ -210,7 +210,7 @@ export default class Document {
 		return this.roots.get( name );
 	}
 
-	_setSelectionAttributes() {
+	_updateSelectionAttributes() {
 		if ( !this.selection.hasAnyRange ) {
 			this.selection.clearAttributes();
 		} else {