瀏覽代碼

Aligned the last super.is() use to the changes in this PR.

Piotrek Koszuliński 5 年之前
父節點
當前提交
cc0633b191
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      packages/ckeditor5-engine/src/view/text.js

+ 3 - 1
packages/ckeditor5-engine/src/view/text.js

@@ -60,7 +60,9 @@ export default class Text extends Node {
 	 * @returns {Boolean}
 	 */
 	is( type ) {
-		return type === 'text' || type === 'view:text' || super.is( type );
+		return type === 'text' || type === 'view:text' ||
+			// From super.is(). This is highly utilised method and cannot call super. See ckeditor/ckeditor5#6529.
+			type === 'node' || type === 'view:node';
 	}
 
 	/**