diff options
author | Adam Spiers <git@adamspiers.org> | 2015-01-12 02:28:29 +0000 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2015-01-12 02:28:29 +0000 |
commit | 29fc2d2985403f9cd6730a9e5f775b01b8d89e09 (patch) | |
tree | 94fc853d6c71fc0a81635b9438a5b8a542ebe40c /html | |
parent | 97a6f62e64269279d74fe9e8f40dede000408dec (diff) | |
download | git-deps-29fc2d2985403f9cd6730a9e5f775b01b8d89e09.tar.gz |
rename path to paths, since it's a d3 selection
Diffstat (limited to 'html')
-rw-r--r-- | html/js/git-deps-graph.coffee | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/html/js/git-deps-graph.coffee b/html/js/git-deps-graph.coffee index 4ad7e4c..adb78b7 100644 --- a/html/js/git-deps-graph.coffee +++ b/html/js/git-deps-graph.coffee @@ -36,7 +36,7 @@ container = undefined svg = undefined fg = undefined nodes = undefined -path = undefined +paths = undefined tip = undefined tip_template = undefined zoom = undefined @@ -185,9 +185,9 @@ draw_graph = (commitish) -> update_cola() - path = fg.selectAll(".link") + paths = fg.selectAll(".link") .data(gdd.links, link_key) - path.enter().append("svg:path") + paths.enter().append("svg:path") .attr("class", "link") nodes = fg.selectAll(".node") .data(gdd.nodes, (d) -> d.sha1) @@ -444,10 +444,10 @@ tick_handler = -> nodes.attr "transform", (d) -> translate d.innerBounds.x, d.innerBounds.y - path.each (d) -> + paths.each (d) -> @parentNode.insertBefore this, this if isIE() - path.attr "d", (d) -> + paths.attr "d", (d) -> # Undocumented: https://github.com/tgdwyer/WebCola/issues/52 cola.vpsc.makeEdgeBetween \ @@ -471,7 +471,7 @@ lineFunction = d3.svg.line() routeEdges = -> d3cola.prepareEdgeRouting EDGE_ROUTING_MARGIN - path.attr "d", (d) -> + paths.attr "d", (d) -> lineFunction d3cola.routeEdge(d) # show visibility graph # (g) -> @@ -482,7 +482,7 @@ routeEdges = -> # .attr("stroke", "green") if isIE() - path.each (d) -> + paths.each (d) -> @parentNode.insertBefore this, this isIE = -> |