From b3400475d55353f85c5ddec0a7015982d99bdeb6 Mon Sep 17 00:00:00 2001 From: Elliott Sprehn Date: Tue, 16 Dec 2014 16:28:28 -0800 Subject: [PATCH] Make SkyElement more classy. The syntax for implementing a SkyElement is now: The register() static method on SkyElement subclasses calls document.registerElement() and returns the generated constructor. It uses the parent 's name attribute to set the name of the element. R=rafaelw@chromium.org Review URL: https://codereview.chromium.org/788943003 --- examples/city-list/city-list.sky | 85 ++++++++++++---------- examples/file-browser.sky | 17 +++-- examples/flights-app/app-header.sky | 8 +- examples/flights-app/app-menu-button.sky | 8 +- examples/flights-app/app-panel-content.sky | 8 +- examples/flights-app/app-panel-header.sky | 8 +- examples/flights-app/app-panel.sky | 8 +- examples/flights-app/app-scrollable.sky | 8 +- examples/flights-app/app-search-input.sky | 8 +- examples/flights-app/app-title.sky | 8 +- examples/flights-app/app-toast.sky | 8 +- examples/flights-app/app-toolbar.sky | 8 +- examples/flights-app/flights-app.sky | 7 +- examples/flights-app/index.sky | 6 +- framework/sky-element/sky-element.sky | 85 +++++++++++----------- 15 files changed, 154 insertions(+), 126 deletions(-) diff --git a/examples/city-list/city-list.sky b/examples/city-list/city-list.sky index f89cad77fc5..4306c934558 100644 --- a/examples/city-list/city-list.sky +++ b/examples/city-list/city-list.sky @@ -7,6 +7,12 @@ + + + - + diff --git a/examples/file-browser.sky b/examples/file-browser.sky index ba456ae9e3f..f71672c36d6 100644 --- a/examples/file-browser.sky +++ b/examples/file-browser.sky @@ -6,6 +6,7 @@ +