Преглед на файлове

Renamed DocumentSelection#refreshAttributes() to refresh().

Oskar Wróbel преди 6 години
родител
ревизия
c645925142
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 2 2
      packages/ckeditor5-engine/src/model/document.js
  2. 1 1
      packages/ckeditor5-engine/src/model/documentselection.js

+ 2 - 2
packages/ckeditor5-engine/src/model/document.js

@@ -308,7 +308,7 @@ export default class Document {
 			this._callPostFixers( writer );
 
 			// Refresh selection attributes according to the final position in the model after the change.
-			this.selection.refreshAttributes();
+			this.selection.refresh();
 
 			if ( this.differ.hasDataChanges() ) {
 				this.fire( 'change:data', writer.batch );
@@ -396,7 +396,7 @@ export default class Document {
 			for ( const callback of this._postFixers ) {
 				// Ensure selection attributes are up to date before each post-fixer.
 				// https://github.com/ckeditor/ckeditor5-engine/issues/1673.
-				this.selection.refreshAttributes();
+				this.selection.refresh();
 
 				wasFixed = callback( writer );
 

+ 1 - 1
packages/ckeditor5-engine/src/model/documentselection.js

@@ -362,7 +362,7 @@ export default class DocumentSelection {
 	/**
 	 * Refreshes selection attributes and markers according to the current position in the model.
 	 */
-	refreshAttributes() {
+	refresh() {
 		this._selection._updateMarkers();
 		this._selection._updateAttributes( false );
 	}