From 2f7857335760d5fd07b53854a7e877a4a0c81dd9 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Fri, 26 Oct 2018 11:46:25 -0700 Subject: [PATCH] Fix prototype registration --- lib/mixins/element-mixin.html | 47 ----------------------------------- lib/utils/boot.html | 47 +++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/lib/mixins/element-mixin.html b/lib/mixins/element-mixin.html index 73c657ad5f..c75a89c37e 100644 --- a/lib/mixins/element-mixin.html +++ b/lib/mixins/element-mixin.html @@ -683,53 +683,6 @@ return PolymerElement; }); - /** - * Provides basic tracking of element definitions (registrations) and - * instance counts. - * - * @namespace - * @summary Provides basic tracking of element definitions (registrations) and - * instance counts. - */ - Polymer.telemetry = { - /** - * Total number of Polymer element instances created. - * @type {number} - */ - instanceCount: 0, - /** - * Array of Polymer element classes that have been finalized. - * @type {Array} - */ - registrations: [], - /** - * @param {!PolymerElementConstructor} prototype Element prototype to log - * @this {this} - * @private - */ - _regLog: function(prototype) { - console.log('[' + prototype.is + ']: registered'); - }, - /** - * Registers a class prototype for telemetry purposes. - * @param {HTMLElement} prototype Element prototype to register - * @this {this} - * @protected - */ - register: function(prototype) { - this.registrations.push(prototype); - Polymer.log && this._regLog(prototype); - }, - /** - * Logs all elements registered with an `is` to the console. - * @public - * @this {this} - */ - dumpRegistrations: function() { - this.registrations.forEach(this._regLog); - } - }; - /** * When using the ShadyCSS scoping and custom property shim, causes all * shimmed `styles` (via `custom-style`) in the document (and its subtree) diff --git a/lib/utils/boot.html b/lib/utils/boot.html index 3cd64cdf83..4ea0412c7d 100644 --- a/lib/utils/boot.html +++ b/lib/utils/boot.html @@ -61,5 +61,52 @@ }; /* eslint-enable */ + /** + * Provides basic tracking of element definitions (registrations) and + * instance counts. + * + * @namespace + * @summary Provides basic tracking of element definitions (registrations) and + * instance counts. + */ + Polymer.telemetry = { + /** + * Total number of Polymer element instances created. + * @type {number} + */ + instanceCount: 0, + /** + * Array of Polymer element classes that have been finalized. + * @type {Array} + */ + registrations: [], + /** + * @param {!PolymerElementConstructor} prototype Element prototype to log + * @this {this} + * @private + */ + _regLog: function(prototype) { + console.log('[' + prototype.is + ']: registered'); + }, + /** + * Registers a class prototype for telemetry purposes. + * @param {HTMLElement} prototype Element prototype to register + * @this {this} + * @protected + */ + register: function(prototype) { + this.registrations.push(prototype); + Polymer.log && this._regLog(prototype); + }, + /** + * Logs all elements registered with an `is` to the console. + * @public + * @this {this} + */ + dumpRegistrations: function() { + this.registrations.forEach(this._regLog); + } + }; + })();