Parcourir la source

Rename Document#_setSelectionAttributes to Document#_updateSelectionAttributes.

Szymon Cofalik il y a 9 ans
Parent
commit
7f0278c6d4
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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 {