Skip to content

Delay the binding of paper for ToolView #1419

Closed
@yfwz100

Description

@yfwz100

See the code below. The paper binding could be derived from relatedView instead of binding directly. By delaying the binding of paper, the ToolView could be initialized within the initialization procedure of Link.

guard: function(evt) {
// Let the context-menu event bubble up to the relatedView
const { paper, relatedView } = this;
if (!paper || !relatedView) return true;
return paper.guard(evt, relatedView);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions