Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Aligned the last super.is() use to the changes in this PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Apr 8, 2020
1 parent 029e8b2 commit 19cd270
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/view/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

/**
Expand Down

0 comments on commit 19cd270

Please sign in to comment.