fix: illegal invocation
This commit is contained in:
parent
341424187b
commit
d54ff6fa94
1 changed files with 4 additions and 1 deletions
|
@ -184,7 +184,10 @@ export class WebComponent extends HTMLElement {
|
||||||
#initializeProps() {
|
#initializeProps() {
|
||||||
if (!this.#props) {
|
if (!this.#props) {
|
||||||
const { ...clone } = this;
|
const { ...clone } = this;
|
||||||
this.#props = new Proxy(clone, this.#handler(this.setAttribute));
|
this.#props = new Proxy(
|
||||||
|
clone,
|
||||||
|
this.#handler((key, value) => this.setAttribute(key, value))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue