Function addAttributeChangeCallback

  • Register a callback when an HTMLElement attribute changes.
    This is used, for example, by the Skybox component to watch for changes to the environment-* and skybox-* attributes.

    Parameters

    • domElement: HTMLElement
    • name: string
    • callback: AttributeChangeCallback

    Returns void