- From: Justin Fagnani <notifications@github.com>
- Date: Wed, 18 Sep 2019 08:42:49 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 18 September 2019 15:43:10 UTC
@jakearchibald I don't understand this snippet: ```html <my-custom-element> …some acceptable pre-JS markup that's eventually enhanced… </my-custom-element> <script> { const el = document.currentScript.previousElementSibling; customElements.whenDefined('my-custom-element') .then(() => el.enhance()); } </script> ``` Why wouldn't `.enhance()` be called in `my-custom-element`'s constructor? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/809#issuecomment-532744090
Received on Wednesday, 18 September 2019 15:43:10 UTC