From 4f47cb9215d7a1d1a1b6a943ebdbc348690fc662 Mon Sep 17 00:00:00 2001 From: Hixie Date: Wed, 29 Oct 2014 13:45:20 -0700 Subject: [PATCH] Docs: call superclass constructors in radio.sky example Review URL: https://codereview.chromium.org/689763003 --- examples/radio.sky | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/radio.sky b/examples/radio.sky index a253af3121..ec666d9ec9 100644 --- a/examples/radio.sky +++ b/examples/radio.sky @@ -13,6 +13,7 @@ SKY MODULE - radio button and radio button group module.exports = {}; module.exports.RadioElement = sky.registerElement('radio', class extends Element { constructor () { + super(); this.addEventListener('click', (event) => this.checked = true); this.addShadowRoot(new sky.ShadowRoot(module.document.findId('radio-shadow').content.cloneNode(true))); } @@ -48,6 +49,7 @@ SKY MODULE - radio button and radio button group