aboutsummaryrefslogtreecommitdiffstats
path: root/html
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-07 15:34:11 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-08 01:27:45 +0000
commit3aa412e0241e5f3015c5682f035eb847b230e8d8 (patch)
tree566cbf6a60a7249a20b7dbd419cc04d1730e8768 /html
parentf1ddf074624a7a1ef1f926da0dcfb12fe70e87b3 (diff)
downloadgit-deps-3aa412e0241e5f3015c5682f035eb847b230e8d8.tar.gz
rename redraw() to be less generic
Diffstat (limited to 'html')
-rw-r--r--html/js/git-deps-graph.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/html/js/git-deps-graph.js b/html/js/git-deps-graph.js
index 37a55e3..44b9b79 100644
--- a/html/js/git-deps-graph.js
+++ b/html/js/git-deps-graph.js
@@ -25,11 +25,11 @@ function draw_graph () {
.attr('class', 'background')
.attr('width', "100%")
.attr('height', "100%")
- .call(d3.behavior.zoom().on("zoom", redraw));
+ .call(d3.behavior.zoom().on("zoom", redraw_on_zoom));
fg = svg.append('g');
- function redraw() {
+ function redraw_on_zoom () {
fg.attr("transform",
"translate(" + d3.event.translate + ")" +
" scale(" + d3.event.scale + ")");