aboutsummaryrefslogtreecommitdiff
path: root/static/rrule.js
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-11-23 22:48:18 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-11-23 22:48:18 +0100
commit2bddf0dcd9337d3e7ee8cb5d773ba94e01bff244 (patch)
treee1666db18a1229917719eb2cc471036c62a45baf /static/rrule.js
parentJS Add date_time pseudo tag. (diff)
downloadcalp-2bddf0dcd9337d3e7ee8cb5d773ba94e01bff244.tar.gz
calp-2bddf0dcd9337d3e7ee8cb5d773ba94e01bff244.tar.xz
Found out some inconvinient truths about the format.
Diffstat (limited to 'static/rrule.js')
-rw-r--r--static/rrule.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/static/rrule.js b/static/rrule.js
index 8f3693a6..2f2120e3 100644
--- a/static/rrule.js
+++ b/static/rrule.js
@@ -19,6 +19,12 @@ class RRule {
'bymonthday', 'byyearday', 'byweekno',
'bymonth', 'bysetpos', 'wkst']
+ /*
+ TODO multi valued byhour should be represented as
+ <byhour>1</byhour><byhour>2</byhour>
+ NOT as <byhour>1,2</byhour> as it currently does.
+ */
+
constructor() {
this.listeners = {}
@@ -27,6 +33,11 @@ class RRule {
this[f] = false;
Object.defineProperty(
this, f, {
+ /*
+ TODO many of the fields should be wrapped
+ in type tags. e.g. <until> elements are either
+ <date> or <date-time>, NOT a raw date.
+ */
get: () => this['_' + f],
set: (v) => {
this['_' + f] = v