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

Skip to content

Commit 4efe21e

Browse files
committed
Minor fixes
1 parent b8b8951 commit 4efe21e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/plot_api/plot_api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2796,6 +2796,7 @@ function makePlotFramework(gd) {
27962796
// right, rather than enter/exit which can muck up the order
27972797
// TODO: sort out all the ordering so we don't have to
27982798
// explicitly delete anything
2799+
// FIXME: parcoords reuses this object, not the best pattern
27992800
fullLayout._glcontainer = fullLayout._paperdiv.selectAll('.gl-container')
28002801
.data([{}]);
28012802
fullLayout._glcontainer.enter().append('div')

src/plots/plots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ plots.purge = function(gd) {
13321332

13331333
var fullLayout = gd._fullLayout || {};
13341334
if(fullLayout._glcontainer !== undefined) {
1335-
fullLayout._glcontainer.selectAll('.gl-canvas').data([]).exit().remove();
1335+
fullLayout._glcontainer.selectAll('.gl-canvas').remove();
13361336
fullLayout._glcontainer.remove();
13371337
fullLayout._glcanvas = null;
13381338
}

0 commit comments

Comments
 (0)