From 568ca6a042b3246f0d22d3d9d7c504d7e4c73e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 1 Aug 2022 20:28:00 +0200 Subject: Minor cleanup in TS files. --- static/vevent.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'static/vevent.ts') diff --git a/static/vevent.ts b/static/vevent.ts index 6a2c6f0f..2bd4d3e0 100644 --- a/static/vevent.ts +++ b/static/vevent.ts @@ -9,7 +9,7 @@ export { /* Something which can be redrawn */ interface Redrawable extends HTMLElement { - redraw: ((data: VEvent) => void) + redraw(data: VEvent): void } function isRedrawable(x: HTMLElement): x is Redrawable { @@ -26,7 +26,7 @@ class VEventValue { value: any parameters: Map - constructor(type: ical_type, value: any, parameters = new Map()) { + constructor(type: ical_type, value: any, parameters = new Map) { this.type = type; this.value = value; this.parameters = parameters; @@ -76,7 +76,7 @@ class VEventValue { } } -/* maybe ... */ +/* TODO maybe ... */ class VEventDuration extends VEventValue { } @@ -514,7 +514,7 @@ function xml_to_vcal(xml: Element): VEvent { let property_map: Map = new Map; if (properties) { - property_loop: + /* property_loop: */ for (var i = 0; i < properties.childElementCount; i++) { let tag = properties.childNodes[i]; if (!(tag instanceof Element)) continue; -- cgit v1.2.3