From 9331f7b101349cd6461dd45eccc6ee5218c646a4 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 5 Jul 2019 05:51:45 +0000 Subject: [PATCH] Don't build an unused map --- Layout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Layout.js b/Layout.js index 3120a77..3e0686a 100644 --- a/Layout.js +++ b/Layout.js @@ -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);