switch statment exists in js

This commit is contained in:
sinavir 2022-08-08 12:53:52 +02:00
parent 5451f0d4cc
commit 7cc7f811b1

View file

@ -227,13 +227,15 @@ class Calendar {
_parse_vevent(vevent) {
const event = {}
vevent.forEach(elt => {
if (elt[0] === "attendee") {
switch (elt[0]) {
case "attendee":
if (event[elt[0]] === undefined) event[elt[0]] = []
event[elt[0]].push({
props: elt[1],
val: elt[3]
});
} else {
})
break
default:
event[elt[0]] = elt[3]
}
})