diff --git a/LayoutLink.js b/LayoutLink.js index e626b8e..ed89da5 100644 --- a/LayoutLink.js +++ b/LayoutLink.js @@ -195,7 +195,7 @@ class LayoutLink { let pos = this.path[i]; let score = 0; - if (this.nodesByPos_.has(pos)) { + if (this.nodesByPos_.get(pos) instanceof LayoutNode) { // Never overlap nodes continue; }