From ae3142da0cf31696f4ab4ad258c5483b7c5490b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 8 Nov 2021 19:38:42 +0100 Subject: Major work on event creation. --- static/vevent.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'static/vevent.ts') diff --git a/static/vevent.ts b/static/vevent.ts index 50c3e1a9..e0424ad7 100644 --- a/static/vevent.ts +++ b/static/vevent.ts @@ -3,8 +3,6 @@ import { uid, parseDate } from './lib' export { VEvent, xml_to_vcal } -"use strict"; - /* Something which can be redrawn */ interface Redrawable extends HTMLElement { redraw: ((data: VEvent) => void) @@ -85,10 +83,10 @@ class VEvent { constructor(properties: Map = new Map(), components: VEvent[] = []) { this.components = components; this.registered = []; - /* Re-normalize all given keys to upper case. We could require - * that beforehand, this is much more reliable, for only a - * marginal performance hit. - */ + /* Re-normalize all given keys to upper case. We could require + * that beforehand, this is much more reliable, for only a + * marginal performance hit. + */ this.properties = new Map; for (const [key, value] of properties) { this.properties.set(key.toUpperCase(), value); -- cgit v1.2.3