From e4c57ab3e9d63bac105c4748eac378de5d2478a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 12 Jan 2021 23:42:21 +0100 Subject: Fix jcal->xcal rrule generation --- static/rrule.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'static/rrule.js') diff --git a/static/rrule.js b/static/rrule.js index f11cc640..67a4453f 100644 --- a/static/rrule.js +++ b/static/rrule.js @@ -59,6 +59,9 @@ class RRule { this.listeners[field].push(proc); } + /* NOTE this function is probably never used. + Deperate it and refer to RRule.asJcal + together with jcal_to_xcal */ asXcal(doc) { /* TODO empty case */ // let str = ""; @@ -77,7 +80,7 @@ class RRule { asJcal() { let obj = {}; for (let f of this.fields) { - let v = this.fields[f]; + let v = this[f]; if (! v) continue; /* TODO special formatting for some types */ obj[f] = v; -- cgit v1.2.3