diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-09-13 00:01:28 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-09-13 00:01:28 +0200 |
commit | a82b6c772089aa46e30c6c89ef48f514294df3cb (patch) | |
tree | e25d9b6fd1fefe8b6ac293a5c0b53293872a8f54 /static/ts/components.ts | |
parent | Add basic documentation for lens. (diff) | |
parent | Even more documentation. (diff) | |
download | calp-a82b6c772089aa46e30c6c89ef48f514294df3cb.tar.gz calp-a82b6c772089aa46e30c6c89ef48f514294df3cb.tar.xz |
Merge branch 'next' into datarewrite-structures
Diffstat (limited to '')
-rw-r--r-- | static/ts/components.ts (renamed from static/components.ts) | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/static/components.ts b/static/ts/components.ts index e5fabba6..c78b5753 100644 --- a/static/components.ts +++ b/static/ts/components.ts @@ -1,3 +1,12 @@ +/** + Actuall creation of all web components. + + More text + + @category Web Components + @module components + */ + import { ComponentDescription } from './components/vevent-description' import { ComponentEdit } from './components/vevent-edit' import { VEventDL } from './components/vevent-dl' @@ -13,9 +22,20 @@ import { DateJump } from './components/date-jump' export { initialize_components } -function 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 state is available */ |