WIP: ATTENDEE prop support #46

Draft
sinavir wants to merge 4 commits from mdebray/attendees into master
Showing only changes of commit 7cc7f811b1 - Show all commits

View file

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