From c8497c248af4917ce3c5391b68b8b0996e14f015 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sat, 21 Mar 2015 10:39:55 +0100 Subject: [PATCH] history: do not re-use var nodes --- history.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/history.js b/history.js index a4dbf11..5b7f8ff 100644 --- a/history.js +++ b/history.js @@ -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) {