From bac2977b3daf8eb849d2d5c903942c07e433dee7 Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Mon, 1 Jan 2018 21:16:08 +0100 Subject: [PATCH] [BUGFIX] Call correct self.resetView --- lib/forcegraph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/forcegraph.js b/lib/forcegraph.js index 39a8dfa..4ea963d 100644 --- a/lib/forcegraph.js +++ b/lib/forcegraph.js @@ -247,7 +247,7 @@ define(['d3-selection', 'd3-force', 'd3-zoom', 'd3-drag', 'd3-timer', 'd3-ease', if (n) { return [n.x, n.y, (ZOOM_MAX + 1) / 2]; } - return resetView(); + return self.resetView(); }); }; @@ -260,7 +260,7 @@ define(['d3-selection', 'd3-force', 'd3-zoom', 'd3-drag', 'd3-timer', 'd3-ease', if (l) { return [(l.source.x + l.target.x) / 2, (l.source.y + l.target.y) / 2, (ZOOM_MAX / 2) + ZOOM_MIN]; } - return resetView(); + return self.resetView(); }); };