Fix carte initialize

This commit is contained in:
Paul Chavard 2019-08-21 10:48:49 +02:00
parent 10a859cedf
commit 6215ccb3d7

View file

@ -39,7 +39,7 @@ function diplayMap(element, data, initial = false) {
}
}
addEventListener('ds:page:update', initialize);
addEventListener('turbolinks:load', initialize);
addEventListener('carte:update', ({ detail: { selector, data } }) => {
const element = document.querySelector(selector);