From f71a4bc132a252406b9e31d075e9fb12d365e154 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 5 Apr 2015 16:42:59 +0300 Subject: client: graph_view: fix scope of node_url_dx definition --- src/client/view/graph_view.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 7f1a9a32..42c96965 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -33,6 +33,9 @@ function(d3 , Bacon, consts, util , selection , view_helpers, mode // aliases var obj_take = util.obj_take; +// constants (that should be moved somewhere else) +var node_url_dx = 15; + /* debugging helper */ function enableDebugViewOfDiffs(graph) { @@ -380,8 +383,7 @@ function GraphView(spec) { }; function node_text_setup() { - var node_text, - node_url_dx = 15; + var node_text; node_text = vis.selectAll("g.nodetext") .data(graph.nodes(), function(d) { -- cgit v1.3.1