Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1378)

Unified Diff: sky/examples/radio.sky

Issue 695043002: Specs: make element registrations be per-module, define how they are (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/examples/radio.sky
diff --git a/sky/examples/radio.sky b/sky/examples/radio.sky
index 5c9be9dbf1840203500f9790fc41cbab7bba79e5..36daa1c349286f264e10dbc136d24f3ee6e8b0bc 100644
--- a/sky/examples/radio.sky
+++ b/sky/examples/radio.sky
@@ -1,6 +1,9 @@
SKY MODULE - radio button and radio button group
<!-- accessibility handling not implemented yet, pending mojo service -->
-<import src="sky:core" as="sky"/>
+
+<script>
+ module.exports = {};
+</script>
<!-- <radio> -->
<template id="radio-shadow">
@@ -10,8 +13,7 @@ SKY MODULE - radio button and radio button group
</style>
</template>
<script>
- module.exports = {};
- module.exports.RadioElement = sky.registerElement({
+ module.exports.RadioElement = module.registerElement({
tagName: 'radio',
shadow: true,
prototype: class extends Element {
@@ -51,7 +53,7 @@ SKY MODULE - radio button and radio button group
</style>
</template>
<script>
- module.exports.RadioGroupElement = sky.registerElement({
+ module.exports.RadioGroupElement = module.registerElement({
tagName: 'radiogroup',
shadow: true,
prototype: class extends Element {

Powered by Google App Engine
This is Rietveld 408576698