simplify: complexities of human emotion
This commit is contained in:
parent
8a66e3b9ad
commit
0ccc321561
2 changed files with 2 additions and 4 deletions
|
@ -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>`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue