Skip to content

Commit c4973f5

Browse files
committed
make Plotly.deleteTraces on 'surface' and 'mesh' traces work
1 parent 2576519 commit c4973f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/traces/mesh3d/convert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ proto.update = function(data) {
141141
};
142142

143143
proto.dispose = function() {
144-
this.glplot.remove(this.mesh);
144+
this.scene.glplot.remove(this.mesh);
145145
this.mesh.dispose();
146146
};
147147

src/traces/surface/convert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ proto.update = function(data) {
323323

324324

325325
proto.dispose = function() {
326-
this.glplot.remove(this.surface);
326+
this.scene.glplot.remove(this.surface);
327327
this.surface.dispose();
328328
};
329329

0 commit comments

Comments
 (0)