]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js
Fix some JSHint complaints
[rails.git] / app / assets / javascripts / index / notes.js
index 524b0b55f81adfc5d4fdc6eaa7dcfbe1098ca339..307b11e0df1def3a0cc9ee2640e8c2a3389a822e 100644 (file)
@@ -21,12 +21,12 @@ function initializeNotes(map) {
   };
 
   map.on("layeradd", function (e) {
-    if (e.layer == noteLayer) {
+    if (e.layer === noteLayer) {
       loadNotes();
       map.on("moveend", loadNotes);
     }
   }).on("layerremove", function (e) {
-    if (e.layer == noteLayer) {
+    if (e.layer === noteLayer) {
       map.off("moveend", loadNotes);
       noteLayer.clearLayers();
       notes = {};