@vaadin/vaadin-element-mixin
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -12,3 +12,3 @@ { | ||
"name": "@vaadin/vaadin-element-mixin", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"main": "vaadin-element-mixin.js", | ||
@@ -28,3 +28,3 @@ "author": "Vaadin Ltd", | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/vaadin-usage-statistics": "^2.0.2", | ||
"@vaadin/vaadin-usage-statistics": "^2.0.4", | ||
"@vaadin/vaadin-development-mode-detector": "^2.0.0" | ||
@@ -31,0 +31,0 @@ }, |
import { idlePeriod } from '@polymer/polymer/lib/utils/async.js'; | ||
import { Debouncer } from '@polymer/polymer/lib/utils/debounce.js'; | ||
import { enqueueDebouncer } from '@polymer/polymer/lib/utils/flush.js'; | ||
import { usageStatistics } from '@vaadin/vaadin-usage-statistics/vaadin-usage-statistics.js'; | ||
@@ -24,2 +25,4 @@ if (!window.Vaadin) { | ||
const registered = new Set(); | ||
/** | ||
@@ -30,8 +33,11 @@ * @polymerMixin | ||
/** @protected */ | ||
static _finalizeClass() { | ||
super._finalizeClass(); | ||
static finalize() { | ||
super.finalize(); | ||
const {is} = this; | ||
// Registers a class prototype for telemetry purposes. | ||
if (this.is) { | ||
if (is && !registered.has(is)) { | ||
window.Vaadin.registrations.push(this); | ||
registered.add(is); | ||
@@ -48,4 +54,4 @@ if (window.Vaadin.developmentModeCallback) { | ||
} | ||
ready() { | ||
super.ready(); | ||
constructor() { | ||
super(); | ||
if (document.doctype === null) { | ||
@@ -52,0 +58,0 @@ console.warn( |
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
13480
51