-
Notifications
You must be signed in to change notification settings - Fork 874
Closed
Labels
Description
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.
Lines 62 to 67 in 7b6080d
| 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); | |
| } |