From 6d6c25eb99b39e8de86030294c17ceba4c8aab2f Mon Sep 17 00:00:00 2001 From: Peter Burns Date: Wed, 31 Jan 2024 15:50:20 -0800 Subject: [PATCH] Minor updates to comments. --- .../src/scoped-custom-element-registry.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/scoped-custom-element-registry/src/scoped-custom-element-registry.ts b/packages/scoped-custom-element-registry/src/scoped-custom-element-registry.ts index 852a9c73..233f7f59 100644 --- a/packages/scoped-custom-element-registry/src/scoped-custom-element-registry.ts +++ b/packages/scoped-custom-element-registry/src/scoped-custom-element-registry.ts @@ -52,8 +52,8 @@ interface CustomElementRegistry { interface CustomElementDefinition { elementClass: CustomElementConstructor; /** - * We hold onto the versions of callbacks at registration time, because that's the - * specc'd behavior. + * We hold onto the versions of callbacks at registration time, because + * that's the specc'd behavior. */ connectedCallback?: CustomHTMLElement['connectedCallback']; disconnectedCallback?: CustomHTMLElement['disconnectedCallback']; @@ -65,6 +65,11 @@ interface CustomElementDefinition { formResetCallback?: CustomHTMLElement['formResetCallback']; formStateRestoreCallback?: CustomHTMLElement['formStateRestoreCallback']; observedAttributes: Set; + /** + * The class that's registered on the global custom element registry for this + * element definition. Only present if this definition is registered on the + * global registry, though all definitions do have a standin. + */ standInClass?: CustomElementConstructor; }