From f9981b1300a814d425c759419939d096a3f3a289 Mon Sep 17 00:00:00 2001 From: Hixie Date: Tue, 4 Nov 2014 14:15:40 -0800 Subject: [PATCH] Docs: We renamed appendChild to append, so update this example which still uses the old name. Review URL: https://codereview.chromium.org/685063006 --- engine/src/flutter/examples/radio.sky | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/examples/radio.sky b/engine/src/flutter/examples/radio.sky index b5b139bb73..cb39cdb0d7 100644 --- a/engine/src/flutter/examples/radio.sky +++ b/engine/src/flutter/examples/radio.sky @@ -20,7 +20,7 @@ SKY MODULE - radio button and radio button group constructor (module) { super(module); 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 () { return this.hasAttribute('checked'); @@ -59,7 +59,7 @@ SKY MODULE - radio button and radio button group constructor: (class extends Element { constructor (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 () { let children = this.getChildNodes();