svelte-dev-helper
Advanced tools
Comparing version 1.1.7 to 1.1.9
@@ -187,3 +187,4 @@ import Registry from './registry'; | ||
isMounted = this.__mounted, | ||
insertionPoint = this.__insertionPoint; | ||
insertionPoint = this.__insertionPoint, | ||
handlers = this.proxyTarget._handlers; | ||
@@ -194,2 +195,13 @@ this.destroy(true, true); | ||
//re-attach event handlers | ||
const self = this; | ||
for (const ev in handlers) { | ||
const _handlers = handlers[ev]; | ||
_handlers.forEach (function(item) { | ||
if (item.toString().includes('component.fire(')) { | ||
self.proxyTarget.on(ev, item); | ||
} | ||
}); | ||
} | ||
if (mountpoint && isMounted) { | ||
@@ -196,0 +208,0 @@ this.proxyTarget._fragment.c(); |
{ | ||
"name": "svelte-dev-helper", | ||
"version": "1.1.7", | ||
"version": "1.1.9", | ||
"description": "Helper for svelte components to ease development", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25281
16
558