Fix typo in 8.2 (Custom elements)
This commit is contained in:
parent
211e20992e
commit
b55c226879
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ For example, buttons are instances of `HTMLButtonElement`, let's build upon it.
|
|||
class HelloButton extends HTMLButtonElement { /* custom element methods */ }
|
||||
```
|
||||
|
||||
2. Provide an third argument to `customElements.define`, that specifies the tag:
|
||||
2. Provide the third argument to `customElements.define`, that specifies the tag:
|
||||
```js
|
||||
customElements.define('hello-button', HelloButton, *!*{extends: 'button'}*/!*);
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue