Fix race condition
This commit is contained in:
parent
d3cb7bfca8
commit
d5fe062e7f
1 changed files with 5 additions and 5 deletions
|
@ -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, "/");
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue