x4js - v2.2.49
    Preparing search index...

    Function addEvent

    • Registers an event handler for a specific node. Automatically initializes MutationObserver or ResizeObserver if special events ('created', 'removed', 'resized') are requested.

      Parameters

      • node: Node

        The target DOM node.

      • name: string

        The name of the event to listen for.

      • handler: DOMEventHandler

        The function to call when the event occurs.

      • prepend: boolean = false

        Whether to prepend the handler to the list (default: false).

      Returns void