history: do not re-use var nodes

This commit is contained in:
Nils Schneider 2015-03-21 10:39:55 +01:00
parent eb4d665b48
commit c8497c248a

View File

@ -116,11 +116,11 @@ function handle_data(config, map) {
var onlinenodes = subtract(nodes.filter(online).filter(has_location), newnodes)
var graph = data[1].batadv
var nodes = data[0].nodes
var graphnodes = data[0].nodes
graph.nodes.forEach( function (d) {
if (d.node_id in nodes && "location" in nodes[d.node_id].nodeinfo)
d.node = nodes[d.node_id]
if (d.node_id in graphnodes && "location" in graphnodes[d.node_id].nodeinfo)
d.node = graphnodes[d.node_id]
})
graph.links.forEach( function (d) {