How can I check, if a leaflet popup is open?
I have seen, that there is an .isOpen event in the documentation (methods), but I am not so familiar with the integration of it. I tried something (horrible) like this:
var marker = L.popup();
if($(marker).isOpen) {
// do something
}
else {
// do nothing
}