aboutsummaryrefslogtreecommitdiff
path: root/static/vevent.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-11-08 19:38:42 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-11-08 19:38:42 +0100
commitae3142da0cf31696f4ab4ad258c5483b7c5490b6 (patch)
treebf3f2134deadad7d749f262b45b87cfeaf253ee6 /static/vevent.ts
parentAll ComponentVEvent requires uid. (diff)
downloadcalp-ae3142da0cf31696f4ab4ad258c5483b7c5490b6.tar.gz
calp-ae3142da0cf31696f4ab4ad258c5483b7c5490b6.tar.xz
Major work on event creation.
Diffstat (limited to 'static/vevent.ts')
-rw-r--r--static/vevent.ts10
1 files changed, 4 insertions, 6 deletions
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<string, VEventValue> = 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);