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

Function mount

src/js/components/Drag/Drag.ts:90–97  ·  view source on GitHub ↗

* Called when the component is mounted.

()

Source from the content-addressed store, hash-verified

88 * Called when the component is mounted.
89 */
90 function mount(): void {
91 bind( track, POINTER_MOVE_EVENTS, noop, SCROLL_LISTENER_OPTIONS );
92 bind( track, POINTER_UP_EVENTS, noop, SCROLL_LISTENER_OPTIONS );
93 bind( track, POINTER_DOWN_EVENTS, onPointerDown, SCROLL_LISTENER_OPTIONS );
94 bind( track, 'click', onClick, { capture: true } );
95 bind( track, 'dragstart', prevent );
96 on( [ EVENT_MOUNTED, EVENT_UPDATED ], init );
97 }
98
99 /**
100 * Initializes the component.

Callers

nothing calls this directly

Calls 2

bindFunction · 0.85
onFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…