Skip to content

@serenity-is/corelib / dispatchDisposingEvent

Function: dispatchDisposingEvent()

dispatchDisposingEvent(target, opt?): void

Defined in: ../domwise/dist/index.d.ts:2498

Dispatches a disposing event on the target element, causing any listeners registered via addDisposingListener to be invoked. No-ops when target is falsy or CustomEvent is unavailable.

Parameters

target

EventTarget

Event target to dispatch the event on.

opt?

Optional event configuration.

bubbles?

boolean

Whether the event should bubble. Defaults to false.

cancelable?

boolean

Whether the event is cancelable. Defaults to false.

Returns

void