diff options
author | Adam Spiers <git@adamspiers.org> | 2015-01-12 03:25:26 +0000 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2015-01-12 03:25:26 +0000 |
commit | 28c974edd8056848d5b2ceaeb5f5359d3005fd6d (patch) | |
tree | 4afab770771a7b77896b37c4ef8243c80bffe47f | |
parent | 1e5cbda04aa32328d290e8381b402d69b454cfe5 (diff) | |
download | git-deps-28c974edd8056848d5b2ceaeb5f5359d3005fd6d.tar.gz |
use .node() instead of [0][0]
-rw-r--r-- | html/js/git-deps-graph.coffee | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/js/git-deps-graph.coffee b/html/js/git-deps-graph.coffee index 153cb6b..200bf32 100644 --- a/html/js/git-deps-graph.coffee +++ b/html/js/git-deps-graph.coffee @@ -110,7 +110,7 @@ full_screen_cancel = -> resize_window() full_screen_click = -> - fullScreen container[0][0], full_screen_cancel + fullScreen container.node(), full_screen_cancel fit_svg_to_container() resize_window() #zoom_to_fit(); @@ -136,8 +136,8 @@ add_commitish = (commitish) -> calculate_svg_size_from_container = -> old_svg_width = svg_width old_svg_height = svg_height - svg_width = container[0][0].offsetWidth - SVG_MARGIN - svg_height = container[0][0].offsetHeight - SVG_MARGIN + svg_width = container.node().offsetWidth - SVG_MARGIN + svg_height = container.node().offsetHeight - SVG_MARGIN init_svg = -> container = d3.select("#svg-container") |