Skip to content

Commit

Permalink
Fix telemetry registrations to go eagerly
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Oct 26, 2018
1 parent c61df6f commit f171803
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions lib/mixins/element-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions lib/mixins/properties-mixin.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)) : [];
}
Expand Down

0 comments on commit f171803

Please sign in to comment.