Avoid javascript warning

This commit is contained in:
Tom Hughes 2013-02-05 17:32:44 +00:00
parent 51dcf86f40
commit d92ca41cae

View file

@ -41,7 +41,7 @@ $(document).ready(function () {
});
map.on("popupclose", function (e) {
if (e.popup == newNote._popup) {
if (newNote && e.popup == newNote._popup) {
$(newNote).oneTime(10, "removenote", function () {
map.removeLayer(newNote);
});