Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/headless-content-unblocker/src/dom/initiators/memorizeNativeEvent"

Index

Variables

Const MEMORIZE_NATIVE_EVENT_PROPERTY

MEMORIZE_NATIVE_EVENT_PROPERTY: "rcbNativeEventListenerMemorize" = "rcbNativeEventListenerMemorize"

Functions

memorizeNativeEvent

  • memorizeNativeEvent(element: HTMLElement | Document | Window, eventName: string): void
  • We listen to the passed event and once that event got triggered, all event registrations afterwards are automatically executed, too. This does not need another trigger again.

    You need to call this function as early as possible to catch all triggers.

    Parameters

    • element: HTMLElement | Document | Window
    • eventName: string

    Returns void

Generated using TypeDoc