pull/15538/head
Rich Harris 4 months ago
parent 93c4d84f14
commit 99b7afcae3

@ -18,9 +18,8 @@
this.innerHTML = 'Hello ' + this._obj.text + '!'; this.innerHTML = 'Hello ' + this._obj.text + '!';
} }
} }
if(!window.customElements.get('my-custom-element')) {
window.customElements.define('my-custom-element', MyCustomElement); window.customElements.define('my-custom-element', MyCustomElement);
}
</script> </script>
<my-custom-element camelCase={{ text: 'World' }} /> <my-custom-element camelCase={{ text: 'World' }} />

@ -27,9 +27,7 @@
class Extended extends MyCustomElement {} class Extended extends MyCustomElement {}
if(!window.customElements.get('my-custom-inheritance-element')) { window.customElements.define('my-custom-inheritance-element', Extended);
window.customElements.define('my-custom-inheritance-element', Extended);
}
</script> </script>
<my-custom-inheritance-element camelCase={{ text: 'World' }} text="!" /> <my-custom-inheritance-element camelCase={{ text: 'World' }} text="!" />

Loading…
Cancel
Save