Skip to content

Commit f171803

Browse files
committed
Fix telemetry registrations to go eagerly
1 parent c61df6f commit f171803

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/mixins/element-mixin.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,6 @@
303303
*/
304304
static _finalizeClass() {
305305
super._finalizeClass();
306-
if (this.hasOwnProperty(
307-
JSCompiler_renameProperty('is', this)) && this.is) {
308-
Polymer.telemetry.register(this.prototype);
309-
}
310306
const observers = ownObservers(this);
311307
if (observers) {
312308
this.createObservers(observers, this._properties);

lib/mixins/properties-mixin.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
* @suppress {missingProperties} Interfaces in closure do not inherit statics, but classes do
117117
*/
118118
static get observedAttributes() {
119+
Polymer.telemetry.register(this.prototype);
119120
const props = this._properties;
120121
return props ? Object.keys(props).map(p => this.attributeNameForProperty(p)) : [];
121122
}

0 commit comments

Comments
 (0)