WIP: ATTENDEE prop support #46
1 changed files with 10 additions and 8 deletions
|
@ -227,14 +227,16 @@ class Calendar {
|
|||
_parse_vevent(vevent) {
|
||||
const event = {}
|
||||
vevent.forEach(elt => {
|
||||
if (elt[0] === "attendee") {
|
||||
if (event[elt[0]] === undefined) event[elt[0]] = []
|
||||
event[elt[0]].push({
|
||||
props: elt[1],
|
||||
val: elt[3]
|
||||
});
|
||||
} else {
|
||||
event[elt[0]] = elt[3]
|
||||
switch (elt[0]) {
|
||||
case "attendee":
|
||||
if (event[elt[0]] === undefined) event[elt[0]] = []
|
||||
event[elt[0]].push({
|
||||
props: elt[1],
|
||||
val: elt[3]
|
||||
})
|
||||
break
|
||||
default:
|
||||
event[elt[0]] = elt[3]
|
||||
}
|
||||
})
|
||||
return event
|
||||
|
|
Loading…
Reference in a new issue