From c9dd968c92dc2c854e917f92aa0d3a75059ba104 Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Wed, 27 Dec 2017 19:52:47 +0100 Subject: [PATCH] [BUGFIX] Internet Explorer canvas remove --- lib/forcegraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/forcegraph.js b/lib/forcegraph.js index c49ba58..6feb75d 100644 --- a/lib/forcegraph.js +++ b/lib/forcegraph.js @@ -270,7 +270,7 @@ define(['d3-selection', 'd3-force', 'd3-zoom', 'd3-drag', 'd3-timer', 'd3-ease', self.destroy = function destroy() { force.stop(); - canvas.remove(); + canvas.parentNode.removeChild(canvas); force = null; if (el.parentNode) {