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
1 changed files with 2 additions and 2 deletions

View File

@ -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]
}
})
}