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

Function init

src/js/components/Keyboard/Keyboard.ts:65–72  ·  view source on GitHub ↗

* Initializes the component.

()

Source from the content-addressed store, hash-verified

63 * Initializes the component.
64 */
65 function init(): void {
66 const { keyboard } = options;
67
68 if ( keyboard ) {
69 target = keyboard === 'global' ? window : root;
70 bind( target, KEYBOARD_EVENT, onKeydown );
71 }
72 }
73
74 /**
75 * Destroys the component.

Callers 1

mountFunction · 0.70

Calls 1

bindFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…