Closed noyainrain closed 5 years ago
Experimental branch: https://github.com/noyainrain/meetling/tree/web-components-v1
To be clear this isn't a refactor it's a bonafied feature change @noyainrain
Dear @snuggs, I'm not sure I get your point, could you please elaborate? :)
Oh bcause of the different API. There were breaking changes to v1 API which is what makes it a "non-refactor".
Moved to noyainrain/micro#54.
Upgrade to web components v1 once the webcomponents polyfill supports customized builtin elements, which some of our elements are.
Some things changed and we need to refactor:
document.registerElement -> customElements.define
createdCallback -> constructor
(note https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-conformance)attachedCallback -> connectedCallback
detachedCallback -> disconnectedCallback
With this, reconsider Shadow DOM, using the more lightweight Shady DOM polyifill.