We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bdc38f commit 0b120f9Copy full SHA for 0b120f9
src/plots/gl2d/scene2d.js
@@ -292,6 +292,13 @@ proto.cameraChanged = function() {
292
293
proto.destroy = function() {
294
this.glplot.dispose();
295
+
296
+ this.container.removeChild(this.canvas);
297
+ this.container.removeChild(this.svgContainer);
298
+ this.container.removeChild(this.mouseContainer);
299
300
+ this.glplot = null;
301
+ this.stopped = true;
302
};
303
304
proto.plot = function(fullData, fullLayout) {
@@ -405,6 +412,7 @@ proto.plot = function(fullData, fullLayout) {
405
412
406
413
proto.draw = function() {
407
414
if(this.stopped) return;
415
408
416
requestAnimationFrame(this.redraw);
409
417
410
418
var glplot = this.glplot,
0 commit comments