Commit 7cdfb4c9 authored by Daniel Kullmann's avatar Daniel Kullmann

Uses "target" in event handling code now; "originalTarget" is not available everywhere.

parent 77c0e8e3
Pipeline #162758757 failed with stage
in 28 seconds
......@@ -107,10 +107,10 @@ function removeCountry(sCountry) {
}
function countryClicked(oEvent) {
if (oEvent.originalTarget.checked) {
addCountry(oEvent.originalTarget.value);
if (oEvent.target.checked) {
addCountry(oEvent.target.value);
} else {
removeCountry(oEvent.originalTarget.value);
removeCountry(oEvent.target.value);
}
window.localStorage.corona = JSON.stringify({
countries: aCountries
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment