- From: mantou <notifications@github.com>
- Date: Sun, 22 Nov 2020 08:08:32 -0800
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 22 November 2020 16:08:45 UTC
Support for redefine will make hot replacement easy to implement. ``` class MyElement extends HTMLElement {} customElements.define('my-element', MyElement); ... if (customElements.define('my-element')) { customElements.redefine('my-element', MyElement2); customElements.upgrade(document.documentElement); } ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/820#issuecomment-731770341
Received on Sunday, 22 November 2020 16:08:45 UTC