Răsfoiți Sursa

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

Piotrek Koszuliński 5 ani în urmă
părinte
comite
cc0633b191
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  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}
 	 * @returns {Boolean}
 	 */
 	 */
 	is( type ) {
 	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';
 	}
 	}
 
 
 	/**
 	/**