From f2c465ec65d3abaa956dba9ee6134ad0070a0d7e Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 11 Jan 2015 15:59:58 +0200 Subject: client/graph_view: remove unused parameter in showNodeInfo --- src/client/view/graph_view.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/view') diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 99af3edf..13387c72 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -124,7 +124,7 @@ function GraphView(spec) { update_view(relayout); }); - function showNodeInfo(node, i) { + function showNodeInfo(node) { var closed = false; util.assert(!temporary, "cannot showNodeInfo on a temporary graph"); @@ -362,7 +362,7 @@ function GraphView(spec) { if (!temporary) { svgInput.enable(this, d); selection.update([d]); - showNodeInfo(this.parentNode.node, i); + showNodeInfo(graph.find_node__by_id(this.parentNode.id)); } d3.event.stopPropagation(); }); @@ -400,7 +400,7 @@ function GraphView(spec) { d3.event.stopPropagation(); selection.update([d]); if(!temporary) { - showNodeInfo(d, i); + showNodeInfo(d); } }); circle.append("svg:image") -- cgit v1.3.1