]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js
Merge pull request #3678 from AntonKhorev/close-button-margins
[rails.git] / app / assets / javascripts / index / notes.js
index 4890a2687d1a86a69811ad46d54a1a870227c1a4..5d553e970c4be49aa9a05f0c6984c1e0361429d3 100644 (file)
@@ -39,7 +39,8 @@ OSM.initializeNotes = function (map) {
     }
   });
 
-  function updateMarker(marker, feature) {
+  function updateMarker(old_marker, feature) {
+    var marker = old_marker;
     if (marker) {
       marker.setIcon(noteIcons[feature.properties.status]);
     } else {