diff options
author | Adam Spiers <git@adamspiers.org> | 2015-01-07 22:59:47 +0000 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2015-01-08 01:27:46 +0000 |
commit | 350ad70b5b1dca7962f37a29327b17bf84365ae3 (patch) | |
tree | 57095b66fe736c51fd980548c02dd4c2a19b4a68 /html | |
parent | bf953e7291acae390e300a640d6c0ec7ff0037bb (diff) | |
download | git-deps-350ad70b5b1dca7962f37a29327b17bf84365ae3.tar.gz |
make tip global for debugging
Diffstat (limited to 'html')
-rw-r--r-- | html/js/git-deps-graph.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/html/js/git-deps-graph.js b/html/js/git-deps-graph.js index 259de9f..87ff855 100644 --- a/html/js/git-deps-graph.js +++ b/html/js/git-deps-graph.js @@ -10,7 +10,7 @@ var d3cola = cola.d3adaptor() .avoidOverlaps(true) .size([WIDTH, HEIGHT]); -var svg, fg, node, path; +var svg, fg, node, path, tip; jQuery(function () { draw_graph(); @@ -72,7 +72,7 @@ function draw_graph () { function draw_nodes (fg, node) { // Initialize tooltip - var tip = d3.tip().attr('class', 'd3-tip').html(tip_html); + tip = d3.tip().attr('class', 'd3-tip').html(tip_html); fg.call(tip); // Hide tooltip when we start dragging d3cola.drag().on('dragstart', tip.hide); |