Skip to content

Commit 5621969

Browse files
committed
Remove all event listeners from gd
1 parent 53343bd commit 5621969

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plot_api/plot_api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,7 @@ Plotly.redraw = function(gd) {
941941
Plotly.newPlot = function (gd, data, layout, config) {
942942
gd = getGraphDiv(gd);
943943
plots.purge(gd);
944+
gd.removeAllListeners();
944945
return Plotly.plot(gd, data, layout, config);
945946
};
946947

0 commit comments

Comments
 (0)