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

Skip to content

Commit b8b8951

Browse files
committed
Simplify canvas removal
1 parent 8346ce4 commit b8b8951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/plots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ plots.cleanPlot = function(newFullData, newFullLayout, oldFullData, oldFullLayou
614614

615615
if(hadGl && !hasGl) {
616616
if(oldFullLayout._glcontainer !== undefined) {
617-
oldFullLayout._glcontainer.selectAll('.gl-canvas').data([]).exit().remove();
617+
oldFullLayout._glcontainer.selectAll('.gl-canvas').remove();
618618
oldFullLayout._glcanvas = null;
619619
}
620620
}

0 commit comments

Comments
 (0)