Fix some JSHint complaints
This commit is contained in:
parent
6671a934bf
commit
1596713871
22 changed files with 96 additions and 93 deletions
|
@ -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 = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue