Don't build an unused map

This commit is contained in:
Ian Gulliver
2019-07-05 05:51:45 +00:00
parent 37002541d6
commit 9331f7b101

View File

@@ -97,7 +97,7 @@ class Layout {
continue;
}
obj.savePos();
let nodesByPos = new Map(this.nodesByPos_);
let nodesByPos = Array.from(this.nodesByPos_);
obj.moveBy(offset);
this.setTension(objects);
let testTension = this.getTotalTension(objects);