Skip to content
Snippets Groups Projects
Commit 79bc3a8d authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-status-page: fix neighbour purging

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

Fixes #657
parent bb8d1783
No related branches found
No related tags found
No related merge requests found
...@@ -198,11 +198,11 @@ function (Helper, SignalGraph, Signal) { ...@@ -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]
} })
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment