Comparing version 5.10.0-perf.1 to 5.10.0-perf.2
@@ -136,3 +136,3 @@ 'use strict'; | ||
var elapsedMs = Date.now() - startedAt; | ||
if (elapsedMs > this.slowThreshold) { | ||
if (this.component && elapsedMs > this.component.slowThreshold) { | ||
this.component.dispatchEvent(new CustomEvent('slowRender', { | ||
@@ -139,0 +139,0 @@ detail: { elapsedMs: elapsedMs, component: this.component }, |
@@ -99,3 +99,3 @@ /** | ||
const elapsedMs = Date.now() - startedAt; | ||
if (elapsedMs > this.slowThreshold) { | ||
if (this.component && elapsedMs > this.component.slowThreshold) { | ||
this.component.dispatchEvent( | ||
@@ -102,0 +102,0 @@ new CustomEvent(`slowRender`, { |
{ | ||
"name": "panel", | ||
"version": "5.10.0-perf.1", | ||
"version": "5.10.0-perf.2", | ||
"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
140756