mirror of
https://github.com/Polymer/polymer.git
synced 2026-08-19 01:14:44 -05:00
Fix telemetry registrations to go eagerly
This commit is contained in:
@@ -303,10 +303,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
*/
|
||||
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);
|
||||
|
||||
@@ -116,6 +116,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @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)) : [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user