Parcourir la source

Docs: added comment in LiveRange.

Szymon Cofalik il y a 9 ans
Parent
commit
00fddd987d
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      packages/ckeditor5-engine/src/model/liverange.js

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

@@ -83,6 +83,8 @@ export default class LiveRange extends Range {
  */
 function bindWithDocument() {
 	/*jshint validthis: true */
+	// Operation types handled by LiveRange (these are operations that change model tree structure).
+	const supportedTypes = new Set( [ 'insert', 'move', 'remove', 'reinsert' ] );
 
 	this.listenTo(
 		this.root.document,
@@ -95,8 +97,6 @@ function bindWithDocument() {
 	);
 }
 
-const supportedTypes = new Set( [ 'insert', 'move', 'remove', 'reinsert' ] );
-
 /**
  * Updates this range accordingly to the updates applied to the model. Bases on change events.
  *