From e753d721519f72014241b3d2fc804a919f655769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 7 Sep 2023 02:58:41 +0200 Subject: Document remaining javascript items. --- static/ts/components.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'static/ts/components.ts') 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 -- cgit v1.2.3