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

Function emit

src/js/constructors/EventInterface/EventInterface.ts:64–67  ·  view source on GitHub ↗

* Triggers callback functions. * This accepts additional arguments and passes them to callbacks. * * @param event - An event name.

( event: string )

Source from the content-addressed store, hash-verified

62 * @param event - An event name.
63 */
64 function emit( event: string ): void {
65 // eslint-disable-next-line prefer-rest-params, prefer-spread
66 binder.dispatch( bus, event, slice( arguments, 1 ) );
67 }
68
69 if ( Splide ) {
70 Splide.event.on( EVENT_DESTROY, binder.destroy );

Callers 15

onLoadFunction · 0.50
initFunction · 0.50
updateFunction · 0.50
mountFunction · 0.50
updateFunction · 0.50
moveFunction · 0.50
translateFunction · 0.50
resizeFunction · 0.50
onPointerMoveFunction · 0.50
onPointerUpFunction · 0.50
playFunction · 0.50
pauseFunction · 0.50

Calls 2

sliceFunction · 0.90
dispatchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…