aboutsummaryrefslogtreecommitdiff
path: root/static/components/vevent.ts
diff options
context:
space:
mode:
Diffstat (limited to 'static/components/vevent.ts')
-rw-r--r--static/components/vevent.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/static/components/vevent.ts b/static/components/vevent.ts
index a7fe3e08..01391f9e 100644
--- a/static/components/vevent.ts
+++ b/static/components/vevent.ts
@@ -20,20 +20,20 @@ abstract class ComponentVEvent extends HTMLElement {
let real_uid;
- console.log(this.tagName);
+ // console.log(this.tagName);
if (uid) {
- console.log('Got UID directly');
+ // console.log('Got UID directly');
real_uid = uid;
} else {
/* I know that this case is redundant, it's here if we don't want to
look up the tree later */
if (this.dataset.uid) {
- console.log('Had UID as direct attribute');
+ // console.log('Had UID as direct attribute');
real_uid = this.dataset.uid;
} else {
let el = this.closest('[data-uid]')
if (el) {
- console.log('Found UID higher up in the tree');
+ // console.log('Found UID higher up in the tree');
real_uid = (el as HTMLElement).dataset.uid
} else {
throw "No parent with [data-uid] set"
@@ -46,6 +46,7 @@ abstract class ComponentVEvent extends HTMLElement {
throw `UID required`
}
+ // console.log(real_uid);
this.uid = real_uid;
this.dataset.uid = real_uid;