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

Unified Diff: sky/examples/calculator/buttons.sky

Issue 836153005: Specs: registerElement(registerElement(...)) failed to work as expected (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | sky/examples/htmlish/framework/element.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/calculator/buttons.sky
diff --git a/sky/examples/calculator/buttons.sky b/sky/examples/calculator/buttons.sky
index 1b758d811ca83845497eb35d133d09f1bc837108..29c59c35e44904adc918f7b387e0df04e6f891ae 100644
--- a/sky/examples/calculator/buttons.sky
+++ b/sky/examples/calculator/buttons.sky
@@ -55,25 +55,25 @@ SKY MODULE - button widgets for calculator
<script>
module.exports = {
- ThreeDButtonElement: module.registerElement({
- tagName: 'graybutton',
- shadow: true,
- constructor: class extends AbstractButton {
+ ThreeDButtonElement: module.registerElement(
+ class extends AbstractButton {
+ static get tagName() { return 'graybutton'; }
+ static get shadow() { return true; }
constructor (module) {
super(module);
this.shadowRoot.append(module.document.findId('threed-button-shadow-tree').cloneNode(true));
}
- },
- }),
- FlatButtonElement: module.registerElement({
- tagName: 'graybutton',
- shadow: true,
- constructor: class extends AbstractButton {
+ }
+ ),
+ FlatButtonElement: module.registerElement(
+ class extends AbstractButton {
+ static get tagName() { return 'flatbutton'; }
+ static get shadow() { return true; }
constructor (module) {
super(module);
this.shadowRoot.append(module.document.findId('flat-shadow-tree').cloneNode(true));
}
- },
- }),
+ }
+ ),
};
</script>
« no previous file with comments | « no previous file | sky/examples/htmlish/framework/element.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698