Permalink
Browse files

Avoid javascript warning

  • Loading branch information...
1 parent 51dcf86 commit d92ca41cae337d705625ea94dae9efb7de2f59e6 @tomhughes committed Feb 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/index/notes.js.erb
@@ -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);
});

0 comments on commit d92ca41

Please sign in to comment.