From f17180341c74ce02515b6f860be74e4c796fcc85 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Thu, 25 Oct 2018 18:29:12 -0700 Subject: [PATCH] Fix telemetry registrations to go eagerly --- lib/mixins/element-mixin.html | 4 ---- lib/mixins/properties-mixin.html | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/mixins/element-mixin.html b/lib/mixins/element-mixin.html index e913ff7e85..73c657ad5f 100644 --- a/lib/mixins/element-mixin.html +++ b/lib/mixins/element-mixin.html @@ -303,10 +303,6 @@ */ static _finalizeClass() { super._finalizeClass(); - if (this.hasOwnProperty( - JSCompiler_renameProperty('is', this)) && this.is) { - Polymer.telemetry.register(this.prototype); - } const observers = ownObservers(this); if (observers) { this.createObservers(observers, this._properties); diff --git a/lib/mixins/properties-mixin.html b/lib/mixins/properties-mixin.html index 7ee3e86952..728dea2400 100644 --- a/lib/mixins/properties-mixin.html +++ b/lib/mixins/properties-mixin.html @@ -116,6 +116,7 @@ * @suppress {missingProperties} Interfaces in closure do not inherit statics, but classes do */ static get observedAttributes() { + Polymer.telemetry.register(this.prototype); const props = this._properties; return props ? Object.keys(props).map(p => this.attributeNameForProperty(p)) : []; }