Skip to content

Commit

Permalink
bug fix: check if plot has method
Browse files Browse the repository at this point in the history
  • Loading branch information
shaefner-usgs committed Feb 7, 2024
1 parent a224944 commit 13a9c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/htdocs/js/features/util/earthquakes/Plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ var Plots = function (options) {
_slider?.removeListeners();

_plots.forEach(plot => {
if (!plot.classList.contains('hypocenters')) { // 2d plots only
if (plot.removeListener && !plot.classList.contains('hypocenters')) {
plot.removeListener('plotly_click', _openPopup);
}
});
Expand Down

0 comments on commit 13a9c11

Please sign in to comment.