Add component as argument to state component constructor
This commit is contained in:
parent
f6b82e22ef
commit
b51732636d
1 changed files with 1 additions and 1 deletions
2
state.js
2
state.js
|
@ -269,7 +269,7 @@ export const component = (generator, name) => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
attributeObserver.observe(this, {attributes: true})
|
attributeObserver.observe(this, {attributes: true})
|
||||||
this.replaceChildren(generator(this.state))
|
this.replaceChildren(generator(this.state, this))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
customElements.define(name, Element)
|
customElements.define(name, Element)
|
||||||
|
|
Loading…
Reference in a new issue