simplify: complexities of human emotion

This commit is contained in:
Ayo 2023-10-19 16:14:58 +02:00
parent 8a66e3b9ad
commit 0ccc321561
2 changed files with 2 additions and 4 deletions

View file

@ -13,8 +13,7 @@ class HelloWorld extends HTMLElement {
attributeChangedCallback(property, previousValue, currentValue) {
if (previousValue !== currentValue) {
this[property] = currentValue;
this.innerHTML = `<button style="cursor:pointer">Hello ${this.name}!</button>`;
this.innerHTML = `<button style="cursor:pointer">Hello ${currentValue}!</button>`;
}
}
}

View file

@ -27,8 +27,7 @@ class HelloWorld extends HTMLElement {
attributeChangedCallback(property, previousValue, currentValue) {
if (previousValue !== currentValue) {
this[property] = currentValue;
this.innerHTML = `<button style="cursor:pointer">Hello ${this.name}!</button>`;
this.innerHTML = `<button style="cursor:pointer">Hello ${currentValue}!</button>`;
}
}
}</pre>