diff --git a/src/components/hello-world.js b/src/components/hello-world.js index a3bb0be..a11d43b 100644 --- a/src/components/hello-world.js +++ b/src/components/hello-world.js @@ -13,8 +13,7 @@ class HelloWorld extends HTMLElement { attributeChangedCallback(property, previousValue, currentValue) { if (previousValue !== currentValue) { - this[property] = currentValue; - this.innerHTML = ``; + this.innerHTML = ``; } } } diff --git a/src/pages/index.html b/src/pages/index.html index e8879b1..af6a0fb 100644 --- a/src/pages/index.html +++ b/src/pages/index.html @@ -27,8 +27,7 @@ class HelloWorld extends HTMLElement { attributeChangedCallback(property, previousValue, currentValue) { if (previousValue !== currentValue) { - this[property] = currentValue; - this.innerHTML = ``; + this.innerHTML = ``; } } }