- From: Ryosuke Niwa <notifications@github.com>
- Date: Thu, 17 Mar 2016 02:25:19 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Thursday, 17 March 2016 09:25:46 UTC
> @@ -176,7 +176,7 @@ <h4 id="custom-elements-custom-tag-example">Creating a custom tag</h4>
> <p>We then need to use this class to define the element:</p>
>
> <pre class="highlight">
> -document.defineElement("flag-icon", FlagIcon);</pre>
> +document.registerElement("flag-icon", FlagIcon);</pre>
This isn't right. We should be using `window.customElements.define` instead.
---
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/pull/446/files/7f1f897f0536a2a48d44251de237b7cb03ab159e#r56475327
Received on Thursday, 17 March 2016 09:25:46 UTC