| Index: sky/examples/radio.sky
|
| diff --git a/sky/examples/radio.sky b/sky/examples/radio.sky
|
| index 5920e50e97e3a69374c4ee8321a5fc064b0e3a3f..a253af312169832af9f176f9938ca75329c917e2 100644
|
| --- a/sky/examples/radio.sky
|
| +++ b/sky/examples/radio.sky
|
| @@ -14,7 +14,7 @@ SKY MODULE - radio button and radio button group
|
| module.exports.RadioElement = sky.registerElement('radio', class extends Element {
|
| constructor () {
|
| this.addEventListener('click', (event) => this.checked = true);
|
| - this.createShadowTree().appendChild(module.document.findId('radio-shadow').content.cloneNode(true));
|
| + this.addShadowRoot(new sky.ShadowRoot(module.document.findId('radio-shadow').content.cloneNode(true)));
|
| }
|
| get checked () {
|
| return this.hasAttribute('checked');
|
| @@ -48,7 +48,7 @@ SKY MODULE - radio button and radio button group
|
| <script>
|
| module.exports.RadioGroupElement = sky.registerElement('radiogroup', class extends Element {
|
| constructor () {
|
| - this.createShadowTree().appendChild(module.document.findId('radiogroup-shadow').cloneNode(true));
|
| + this.addShadowRoot(new sky.ShadowRoot(module.document.findId('radiogroup-shadow').content.cloneNode(true)));
|
| }
|
| get value () {
|
| let children = this.getChildNodes();
|
|
|