From 0ccc321561f81efd3b63071bc18c614b711b9291 Mon Sep 17 00:00:00 2001 From: Ayo Date: Thu, 19 Oct 2023 16:14:58 +0200 Subject: [PATCH] simplify: complexities of human emotion --- src/components/hello-world.js | 3 +-- src/pages/index.html | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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 = ``; } } }