@acanto/components-locale-switch
Advanced tools
Comparing version 0.0.6 to 0.0.7
11
index.js
@@ -12,3 +12,3 @@ import { $, $$, forEach, getDataAttr, listen } from "@acanto/core-dom"; | ||
*/ | ||
forEach($$("[data-locale]", $root), $link => { | ||
forEach($$("[data-locale]", $root), ($link) => { | ||
const locale = getDataAttr($link, "locale"); | ||
@@ -18,7 +18,7 @@ domMap[locale] = $link; | ||
listen("click", ".LocaleSwitch:item", event => { | ||
listen("click", ".LocaleSwitch:item", (event) => { | ||
const $link = event.target; | ||
event.preventDefault(); | ||
$root.classList.add("is-loading"); | ||
@@ -42,3 +42,2 @@ | ||
/** | ||
@@ -53,4 +52,4 @@ * On route change update the localised links with the fresh data embedded | ||
return { | ||
onRouteChange | ||
} | ||
onRouteChange, | ||
}; | ||
} |
{ | ||
"name": "@acanto/components-locale-switch", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"author": "Acanto <info@acanto.net> (https://acanto.agency/)", | ||
@@ -17,3 +17,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "561c0e0b0808f291fc6af2e97592e2f2adcf72cd" | ||
"gitHead": "bb1a3f6305bd9eceb8fb6dd07afab8c873a06cdf" | ||
} |
Sorry, the diff of this file is not supported yet