Commit 842d4666 authored by Hixie's avatar Hixie

Docs: We renamed appendChild to append, so update this example which still uses the old name.

Review URL: https://codereview.chromium.org/685063006
parent 1da15583
...@@ -20,7 +20,7 @@ SKY MODULE - radio button and radio button group ...@@ -20,7 +20,7 @@ SKY MODULE - radio button and radio button group
constructor (module) { constructor (module) {
super(module); super(module);
this.addEventListener('click', (event) => this.checked = true); this.addEventListener('click', (event) => this.checked = true);
this.shadowRoot.appendChild(module.document.findId('radio-shadow').content.cloneNode(true)); this.shadowRoot.append(module.document.findId('radio-shadow').content.cloneNode(true));
} }
get checked () { get checked () {
return this.hasAttribute('checked'); return this.hasAttribute('checked');
...@@ -59,7 +59,7 @@ SKY MODULE - radio button and radio button group ...@@ -59,7 +59,7 @@ SKY MODULE - radio button and radio button group
constructor: (class extends Element { constructor: (class extends Element {
constructor (module) { constructor (module) {
super(module); super(module);
this.shadowRoot.appendChild(module.document.findId('radiogroup-shadow').content.cloneNode(true)); this.shadowRoot.append(module.document.findId('radiogroup-shadow').content.cloneNode(true));
} }
get value () { get value () {
let children = this.getChildNodes(); let children = this.getChildNodes();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment