aboutsummaryrefslogtreecommitdiff
path: root/static/ts/components.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-09-07 02:58:41 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-09-07 02:58:41 +0200
commite753d721519f72014241b3d2fc804a919f655769 (patch)
tree5f1e93ca4d3daefcffd746eb0784183664fd241e /static/ts/components.ts
parentNormalize tsconfig formatting. (diff)
downloadcalp-e753d721519f72014241b3d2fc804a919f655769.tar.gz
calp-e753d721519f72014241b3d2fc804a919f655769.tar.xz
Document remaining javascript items.
Diffstat (limited to 'static/ts/components.ts')
-rw-r--r--static/ts/components.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/static/ts/components.ts b/static/ts/components.ts
index cbd6dc9b..c78b5753 100644
--- a/static/ts/components.ts
+++ b/static/ts/components.ts
@@ -22,6 +22,19 @@ import { DateJump } from './components/date-jump'
export { initialize_components }
+/**
+ Create web components from all our components.
+
+ The reason each components module doesn't simply initialize its own component
+ is due to some components needing to be initialized AFTER some global
+ variables (see inline comments).
+
+ @TODO
+ Fix the initialization order dependency
+
+ @TODO
+ or otherwise have a static field on each component specifying it's desired name.
+ */
function initialize_components() {
/* These MUST be created AFTER vcal_objcets and event_calendar_mapping are
inistialized, since their constructors assume that that piece of global