From d00fcdf621b3759b641f2575ae6c1dc3ec31e173 Mon Sep 17 00:00:00 2001 From: Hixie Date: Fri, 31 Oct 2014 16:18:46 -0700 Subject: [PATCH] Specs: make element registrations be per-module, define how they are exported and reexported, rename 'interface' to 'class' in the IDL, add constructors to all registered elements R=esprehn@chromium.org Review URL: https://codereview.chromium.org/695043002 --- engine/src/flutter/README.md | 4 ++-- engine/src/flutter/examples/radio.sky | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/engine/src/flutter/README.md b/engine/src/flutter/README.md index ac26662094..8a5673248d 100644 --- a/engine/src/flutter/README.md +++ b/engine/src/flutter/README.md @@ -72,10 +72,10 @@ SKY MODULE class extends SkyElement { constructor () { this.addEventListener('click', (event) => this.updateTime()); - this.createShadowTree().appendChild('Click to show the time'); + this.shadowRoot.appendChild('Click to show the time'); } updateTime() { - this.shadowTree.firstChild.replaceWith(new Date()); + this.shadowRoot.firstChild.replaceWith(new Date()); } } diff --git a/engine/src/flutter/examples/radio.sky b/engine/src/flutter/examples/radio.sky index 5c9be9dbf1..36daa1c349 100644 --- a/engine/src/flutter/examples/radio.sky +++ b/engine/src/flutter/examples/radio.sky @@ -1,6 +1,9 @@ SKY MODULE - radio button and radio button group - + +