diff --git a/examples/radio.sky b/examples/radio.sky index 6cafa7199c0..b5b139bb730 100644 --- a/examples/radio.sky +++ b/examples/radio.sky @@ -16,7 +16,7 @@ SKY MODULE - radio button and radio button group module.exports.RadioElement = module.registerElement({ tagName: 'radio', shadow: true, - prototype: (class extends Element { + constructor: class extends Element { constructor (module) { super(module); this.addEventListener('click', (event) => this.checked = true); @@ -42,7 +42,7 @@ SKY MODULE - radio button and radio button group if (this.parentNode instanceof module.exports.RadioGroupElement) this.parentNode.setChecked(this); } - }).prototype, + }, }); @@ -53,10 +53,10 @@ SKY MODULE - radio button and radio button group