Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 048f981

Browse files
committed
Merge pull request plotly#369 from plotly/gl2d-fixups
fix gl2d toImage from modebar button
2 parents 3fead90 + 603b8fe commit 048f981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/gl2d/scene2d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ proto.cameraChanged = function() {
293293
proto.destroy = function() {
294294
this.glplot.dispose();
295295

296-
this.container.removeChild(this.canvas);
296+
if(!this.staticPlot) this.container.removeChild(this.canvas);
297297
this.container.removeChild(this.svgContainer);
298298
this.container.removeChild(this.mouseContainer);
299299

0 commit comments

Comments
 (0)