MCPcopy
hub / github.com/Splidejs/splide / mount

Function mount

src/js/components/Elements/Elements.ts:128–140  ·  view source on GitHub ↗

* Called when the component is mounted.

()

Source from the content-addressed store, hash-verified

126 * Called when the component is mounted.
127 */
128 function mount(): void {
129 on( EVENT_REFRESH, destroy );
130 on( EVENT_REFRESH, setup );
131 on( EVENT_UPDATED, update );
132
133 bind( document, `${ POINTER_DOWN_EVENTS } keydown`, e => {
134 isUsingKey = e.type === 'keydown';
135 }, { capture: true } );
136
137 bind( root, 'focusin', () => {
138 toggleClass( root, CLASS_FOCUS_IN, !! isUsingKey );
139 } );
140 }
141
142 /**
143 * Destroys the component.

Callers

nothing calls this directly

Calls 3

toggleClassFunction · 0.90
onFunction · 0.85
bindFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…