Skip to content

Commit 13a9c11

Browse files
committed
bug fix: check if plot has method
1 parent a224944 commit 13a9c11

File tree

1 file changed

+1
-1
lines changed
  • src/htdocs/js/features/util/earthquakes

1 file changed

+1
-1
lines changed

src/htdocs/js/features/util/earthquakes/Plots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ var Plots = function (options) {
688688
_slider?.removeListeners();
689689

690690
_plots.forEach(plot => {
691-
if (!plot.classList.contains('hypocenters')) { // 2d plots only
691+
if (plot.removeListener && !plot.classList.contains('hypocenters')) {
692692
plot.removeListener('plotly_click', _openPopup);
693693
}
694694
});

0 commit comments

Comments
 (0)