From 28c974edd8056848d5b2ceaeb5f5359d3005fd6d Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Mon, 12 Jan 2015 03:25:26 +0000 Subject: use .node() instead of [0][0] --- html/js/git-deps-graph.coffee | 6 +++--- 1 file 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") -- cgit