From 79bc3a8d4b07f3ac3807d732edf14889174e63dd Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 29 Feb 2016 01:12:20 +0100 Subject: [PATCH] gluon-status-page: fix neighbour purging notUpdated is a Set, to a for-in loop doesn't work. Fixes #657 --- package/gluon-status-page/src/js/lib/gui/neighbours.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/gluon-status-page/src/js/lib/gui/neighbours.js b/package/gluon-status-page/src/js/lib/gui/neighbours.js index 396c56fe..ff782506 100644 --- a/package/gluon-status-page/src/js/lib/gui/neighbours.js +++ b/package/gluon-status-page/src/js/lib/gui/neighbours.js @@ -198,11 +198,11 @@ function (Helper, SignalGraph, Signal) { notUpdated.delete(id) } - for (id in notUpdated) { + notUpdated.forEach(function (id) { managedNeighbours[id].views.forEach( function (d) { d.destroy() }) colors.push(managedNeighbours[id].color) delete managedNeighbours[id] - } + }) }