Skip to content

Commit 939637a

Browse files
authored
the update node type function no longer needs to remove the context menu from the paper (#43)
1 parent 017a2a9 commit 939637a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/graph-view-node.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ class GraphViewNode {
442442

443443
updateNodeType(nodeType) {
444444
this._paper.findViewByModel(this.model).el.removeEventListener('contextmenu', this._contextMenu._contextMenuEvent);
445-
this._paper.el.removeChild(this._contextMenuElement);
446445
this.addContextMenu(this._graphSchema.nodes[nodeType].contextMenuItems);
447446
}
448447

0 commit comments

Comments
 (0)