diff --git a/src/plots/gl2d/scene2d.js b/src/plots/gl2d/scene2d.js index d386b47d58d..fc0af4a335f 100644 --- a/src/plots/gl2d/scene2d.js +++ b/src/plots/gl2d/scene2d.js @@ -293,7 +293,7 @@ proto.cameraChanged = function() { proto.destroy = function() { this.glplot.dispose(); - this.container.removeChild(this.canvas); + if(!this.staticPlot) this.container.removeChild(this.canvas); this.container.removeChild(this.svgContainer); this.container.removeChild(this.mouseContainer);