aboutsummaryrefslogtreecommitdiff
path: root/static/components/vevent.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-11-30 01:09:53 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-11-30 01:09:53 +0100
commite71f0c20adc4dc2f49bca99a859241fdadf376d3 (patch)
tree3231d1e491fcd1ed9dc0ab31cac4fdedb733807d /static/components/vevent.ts
parentChange UID resolve. (diff)
downloadcalp-e71f0c20adc4dc2f49bca99a859241fdadf376d3.tar.gz
calp-e71f0c20adc4dc2f49bca99a859241fdadf376d3.tar.xz
Rework tab system.
This sepparates popup-elements from their tabbed contents, allowing clearer sepparations of concerns, along with easier adding and removing of tabs to the tabset!
Diffstat (limited to '')
-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;