From ecdb4b7eeb42dc859cfd6aa31634b423b72c50bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 15 Nov 2021 00:47:13 +0100 Subject: Rework some drawing and how calendar is accessed. --- static/vevent.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'static/vevent.ts') diff --git a/static/vevent.ts b/static/vevent.ts index ddabb507..4f47f8e3 100644 --- a/static/vevent.ts +++ b/static/vevent.ts @@ -129,13 +129,17 @@ class VEvent { } } - setCalendar(calendar: string) { + set calendar(calendar: string | null) { this._calendar = calendar; for (let el of this.registered) { el.redraw(this); } } + get calendar(): string | null { + return this._calendar; + } + register(htmlNode: Redrawable) { this.registered.push(htmlNode); } -- cgit v1.2.3