revojs 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -385,6 +385,7 @@ const toCustomElement = (component) => {
|
|
|
385
385
|
const shadow = this.component.shadowRoot ? this.attachShadow(this.component.shadowRoot) : this;
|
|
386
386
|
const parentNode = getCustomElement(this.parentNode);
|
|
387
387
|
for (const [name, set] of parentNode?.component.scope.hooks ?? []) for (const invoke of set) this.component.scope.on(name, invoke);
|
|
388
|
+
for (const [name, value] of parentNode?.component.scope.context ?? []) this.component.scope.setContext(name, value);
|
|
388
389
|
for (const [name, event] of Object.entries(component.$events)) Reflect.set(this.component.events, name, (value) => {
|
|
389
390
|
if (value instanceof Event) return;
|
|
390
391
|
this.dispatchEvent(new CustomEvent(name.substring(2).toLowerCase(), {
|