aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-12 03:25:26 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-12 03:25:26 +0000
commit28c974edd8056848d5b2ceaeb5f5359d3005fd6d (patch)
tree4afab770771a7b77896b37c4ef8243c80bffe47f
parent1e5cbda04aa32328d290e8381b402d69b454cfe5 (diff)
downloadgit-deps-28c974edd8056848d5b2ceaeb5f5359d3005fd6d.tar.gz
use .node() instead of [0][0]
-rw-r--r--html/js/git-deps-graph.coffee6
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")