gluon-status-page: fix neighbour purging

notUpdated is a Set, to a for-in loop doesn't work.

Fixes #657
This commit is contained in:
Matthias Schiffer 2016-02-29 01:12:20 +01:00
parent bb8d1783b3
commit 79bc3a8d4b

View File

@ -198,11 +198,11 @@ function (Helper, SignalGraph, Signal) {
notUpdated.delete(id) notUpdated.delete(id)
} }
for (id in notUpdated) { notUpdated.forEach(function (id) {
managedNeighbours[id].views.forEach( function (d) { d.destroy() }) managedNeighbours[id].views.forEach( function (d) { d.destroy() })
colors.push(managedNeighbours[id].color) colors.push(managedNeighbours[id].color)
delete managedNeighbours[id] delete managedNeighbours[id]
} })
} }