diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-13 02:26:36 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-13 02:26:51 +0100 |
commit | 3ddbd37ade2e03e4fc3a6f5ba52234bc286fded3 (patch) | |
tree | a5559af37dfacc447f35289ebda31d1b36973e1b /static/components/vevent.ts | |
parent | Merge draggable into popup-element. (diff) | |
download | calp-3ddbd37ade2e03e4fc3a6f5ba52234bc286fded3.tar.gz calp-3ddbd37ade2e03e4fc3a6f5ba52234bc286fded3.tar.xz |
Made VEventComponent template optional.
Diffstat (limited to '')
-rw-r--r-- | static/components/vevent.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/static/components/vevent.ts b/static/components/vevent.ts index 01391f9e..b72cda90 100644 --- a/static/components/vevent.ts +++ b/static/components/vevent.ts @@ -10,13 +10,12 @@ Lacks an accompaning tag, and shouldn't be directly instanciated. */ abstract class ComponentVEvent extends HTMLElement { - template: HTMLTemplateElement + template: HTMLTemplateElement | null uid: string constructor(uid?: string) { super(); - this.template = document.getElementById(this.tagName) as HTMLTemplateElement; - + this.template = document.getElementById(this.tagName) as HTMLTemplateElement | null let real_uid; |