Former-commit-id: ea1f89d9f831b7027723ffbe2b5940db315ff47c
This commit is contained in:
Ben
2022-04-29 20:02:07 +01:00
parent f6cdd2a885
commit e0fc9f81aa

View File

@@ -78,7 +78,7 @@ export class Component extends HTMLElement {
attributeChangedCallback(name, newValue) {
console.log(`attribute changed: ${name} ${newValue}`);
this.Update(Object.bind(this, name, {
this.Update(Object.bind(this)(name, {
...this.state,
[name]: newValue,
}));