Avoid javascript warning
This commit is contained in:
parent
51dcf86f40
commit
d92ca41cae
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ $(document).ready(function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
map.on("popupclose", function (e) {
|
map.on("popupclose", function (e) {
|
||||||
if (e.popup == newNote._popup) {
|
if (newNote && e.popup == newNote._popup) {
|
||||||
$(newNote).oneTime(10, "removenote", function () {
|
$(newNote).oneTime(10, "removenote", function () {
|
||||||
map.removeLayer(newNote);
|
map.removeLayer(newNote);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue