Fix race condition

This commit is contained in:
Midgard 2020-05-22 22:01:41 +02:00
parent d3cb7bfca8
commit d5fe062e7f
Signed by: midgard
GPG Key ID: 511C112F1331BBB4
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,9 @@
$(document).ready(function() {
Handlebars.registerHelper("date", function (ddmyyyy) {
return ddmyyyy.replace(/-/g, "/");
});
L.Icon.Default.imagePath = "img/";
var popuptemplate = Handlebars.compile($("#popup-template").html());
@ -159,9 +164,4 @@ $(document).ready(function() {
var legend = new SimpleControl("#legend-template", christmasSeason ? "holiday-legend" : "legend", {
position: "bottomright"
}).addTo(map);
Handlebars.registerHelper("date", function (ddmyyyy) {
return ddmyyyy.replace(/-/g, "/");
})
});