Comparing version 5.10.0-perf.0 to 5.10.0-perf.1
@@ -518,3 +518,4 @@ 'use strict'; | ||
this.domPatcher = new _domPatcher.DOMPatcher(this.state, this._render.bind(this), { | ||
updateMode: this.getConfig('updateSync') ? 'sync' : 'async' | ||
updateMode: this.getConfig('updateSync') ? 'sync' : 'async', | ||
component: this | ||
}); | ||
@@ -521,0 +522,0 @@ this.el.appendChild(this.domPatcher.el); |
@@ -64,2 +64,3 @@ 'use strict'; | ||
this.vnode = this.renderFunc(this.state); | ||
this.component = options.component; | ||
@@ -137,4 +138,4 @@ // prepare root element | ||
if (elapsedMs > this.slowThreshold) { | ||
this.dispatchEvent(new CustomEvent('slowRender', { | ||
detail: { elapsedMs: elapsedMs, component: this }, | ||
this.component.dispatchEvent(new CustomEvent('slowRender', { | ||
detail: { elapsedMs: elapsedMs, component: this.component }, | ||
bubbles: true, | ||
@@ -153,2 +154,3 @@ composed: true | ||
this.el = null; | ||
this.component = null; | ||
// patch with empty vnode to clear out listeners in tree | ||
@@ -155,0 +157,0 @@ // this ensures we don't leave dangling DetachedHTMLElements blocking GC |
@@ -401,2 +401,3 @@ import cuid from 'cuid'; | ||
updateMode: this.getConfig(`updateSync`) ? `sync` : `async`, | ||
component: this, | ||
}); | ||
@@ -403,0 +404,0 @@ this.el.appendChild(this.domPatcher.el); |
@@ -36,2 +36,3 @@ /** | ||
this.vnode = this.renderFunc(this.state); | ||
this.component = options.component; | ||
@@ -100,5 +101,5 @@ // prepare root element | ||
if (elapsedMs > this.slowThreshold) { | ||
this.dispatchEvent( | ||
this.component.dispatchEvent( | ||
new CustomEvent(`slowRender`, { | ||
detail: {elapsedMs, component: this}, | ||
detail: {elapsedMs, component: this.component}, | ||
bubbles: true, | ||
@@ -117,2 +118,3 @@ composed: true, | ||
this.el = null; | ||
this.component = null; | ||
// patch with empty vnode to clear out listeners in tree | ||
@@ -119,0 +121,0 @@ // this ensures we don't leave dangling DetachedHTMLElements blocking GC |
{ | ||
"name": "panel", | ||
"version": "5.10.0-perf.0", | ||
"version": "5.10.0-perf.1", | ||
"description": "Web Components with Virtual DOM: lightweight composable web apps", | ||
@@ -5,0 +5,0 @@ "main": "build/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
140700
3208