summaryrefslogtreecommitdiff
path: root/src/client/view
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-05 16:42:59 +0300
committerAlon Levy <alon@pobox.com>2015-04-05 16:42:59 +0300
commitf71a4bc132a252406b9e31d075e9fb12d365e154 (patch)
tree83cf796c2d8c6cad82b507c20a67d7f23c631b27 /src/client/view
parent13e3769e1ff9a5f599f22b3d1d3d9eb872117b32 (diff)
client: graph_view: fix scope of node_url_dx definition
Diffstat (limited to 'src/client/view')
-rw-r--r--src/client/view/graph_view.js6
1 files changed, 4 insertions, 2 deletions
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) {