

/*
DO NOT IMPORT ENGINE_ELEMENT FROM HERE
*/

/**
 * Call with the name of an attribute that you want to receive change events for    
 * This is useful for example if you want to add custom attributes to <needle-engine> 
 * Use the addAttributeChangeCallback utility methods to register callback events
 */
export async function registerObservableAttribute(name: string) {
    const { NeedleEngineHTMLElement } = await import("./engine_element.js");
    if (!NeedleEngineHTMLElement.observedAttributes.includes(name))
        NeedleEngineHTMLElement.observedAttributes.push(name);
}
