瀏覽代碼

Docs: added comment in LiveRange.

Szymon Cofalik 9 年之前
父節點
當前提交
00fddd987d
共有 1 個文件被更改,包括 2 次插入2 次删除
  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.
  *