File tree Expand file tree Collapse file tree 2 files changed +47
-47
lines changed
Expand file tree Collapse file tree 2 files changed +47
-47
lines changed Original file line number Diff line number Diff line change 683683 return PolymerElement ;
684684 } ) ;
685685
686- /**
687- * Provides basic tracking of element definitions (registrations) and
688- * instance counts.
689- *
690- * @namespace
691- * @summary Provides basic tracking of element definitions (registrations) and
692- * instance counts.
693- */
694- Polymer . telemetry = {
695- /**
696- * Total number of Polymer element instances created.
697- * @type {number }
698- */
699- instanceCount : 0 ,
700- /**
701- * Array of Polymer element classes that have been finalized.
702- * @type {Array<Polymer.Element> }
703- */
704- registrations : [ ] ,
705- /**
706- * @param {!PolymerElementConstructor } prototype Element prototype to log
707- * @this {this}
708- * @private
709- */
710- _regLog : function ( prototype ) {
711- console . log ( '[' + prototype . is + ']: registered' ) ;
712- } ,
713- /**
714- * Registers a class prototype for telemetry purposes.
715- * @param {HTMLElement } prototype Element prototype to register
716- * @this {this}
717- * @protected
718- */
719- register : function ( prototype ) {
720- this . registrations . push ( prototype ) ;
721- Polymer . log && this . _regLog ( prototype ) ;
722- } ,
723- /**
724- * Logs all elements registered with an `is` to the console.
725- * @public
726- * @this {this}
727- */
728- dumpRegistrations : function ( ) {
729- this . registrations . forEach ( this . _regLog ) ;
730- }
731- } ;
732-
733686 /**
734687 * When using the ShadyCSS scoping and custom property shim, causes all
735688 * shimmed `styles` (via `custom-style`) in the document (and its subtree)
Original file line number Diff line number Diff line change 6161 } ;
6262 /* eslint-enable */
6363
64+ /**
65+ * Provides basic tracking of element definitions (registrations) and
66+ * instance counts.
67+ *
68+ * @namespace
69+ * @summary Provides basic tracking of element definitions (registrations) and
70+ * instance counts.
71+ */
72+ Polymer . telemetry = {
73+ /**
74+ * Total number of Polymer element instances created.
75+ * @type {number }
76+ */
77+ instanceCount : 0 ,
78+ /**
79+ * Array of Polymer element classes that have been finalized.
80+ * @type {Array<Polymer.Element> }
81+ */
82+ registrations : [ ] ,
83+ /**
84+ * @param {!PolymerElementConstructor } prototype Element prototype to log
85+ * @this {this}
86+ * @private
87+ */
88+ _regLog : function ( prototype ) {
89+ console . log ( '[' + prototype . is + ']: registered' ) ;
90+ } ,
91+ /**
92+ * Registers a class prototype for telemetry purposes.
93+ * @param {HTMLElement } prototype Element prototype to register
94+ * @this {this}
95+ * @protected
96+ */
97+ register : function ( prototype ) {
98+ this . registrations . push ( prototype ) ;
99+ Polymer . log && this . _regLog ( prototype ) ;
100+ } ,
101+ /**
102+ * Logs all elements registered with an `is` to the console.
103+ * @public
104+ * @this {this}
105+ */
106+ dumpRegistrations : function ( ) {
107+ this . registrations . forEach ( this . _regLog ) ;
108+ }
109+ } ;
110+
64111} ) ( ) ;
65112</ script >
You can’t perform that action at this time.
0 commit comments