Skip to content

Add is() method to other model/view objects #4479

Closed
ckeditor/ckeditor5-engine
#1736
@Reinmar

Description

@Reinmar

After https://github.com/ckeditor/ckeditor5-engine/issues/1663 Range, Position, Marker and perhaps something else will still miss this method. Let's add it.

Also, lets remove as many instanceof checks from packages other than engine.

One remaining thing to check would be how often we use instanceof to distinguish between model and view things. Perhaps we could also have is( 'view:element' ) and secure our code a bit with this.

Metadata

Metadata

Assignees

Labels

package:enginetype:improvementThis issue reports a possible enhancement of an existing feature.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions