@@ -98,7 +98,7 @@ class Tooltip extends ThemePropertyMixin(ElementMixin(PolymerElement)) {
9898 static get properties ( ) {
9999 return {
100100 /**
101- * Object with properties passed to `textGenerator `
101+ * Object with properties passed to `generator `
102102 * function to be used for generating tooltip text.
103103 */
104104 context : {
@@ -212,7 +212,7 @@ class Tooltip extends ThemePropertyMixin(ElementMixin(PolymerElement)) {
212212 * Use the `context` property to provide argument
213213 * that can be passed to the generator function.
214214 */
215- textGenerator : {
215+ generator : {
216216 type : Object ,
217217 } ,
218218
@@ -238,7 +238,7 @@ class Tooltip extends ThemePropertyMixin(ElementMixin(PolymerElement)) {
238238 }
239239
240240 static get observers ( ) {
241- return [ '__textGeneratorChanged (_overlayElement, textGenerator , context)' ] ;
241+ return [ '__generatorChanged (_overlayElement, generator , context)' ] ;
242242 }
243243
244244 /**
@@ -328,7 +328,7 @@ class Tooltip extends ThemePropertyMixin(ElementMixin(PolymerElement)) {
328328
329329 /** @private */
330330 __tooltipRenderer ( root ) {
331- root . textContent = typeof this . textGenerator === 'function' ? this . textGenerator ( this . context ) : this . text ;
331+ root . textContent = typeof this . generator === 'function' ? this . generator ( this . context ) : this . text ;
332332 }
333333
334334 /** @private */
@@ -655,13 +655,13 @@ class Tooltip extends ThemePropertyMixin(ElementMixin(PolymerElement)) {
655655 }
656656
657657 /** @private */
658- __textGeneratorChanged ( overlayElement , textGenerator , context ) {
658+ __generatorChanged ( overlayElement , generator , context ) {
659659 if ( overlayElement ) {
660- if ( textGenerator !== this . __oldTextGenerator || context !== this . __oldContext ) {
660+ if ( generator !== this . __oldTextGenerator || context !== this . __oldContext ) {
661661 overlayElement . requestContentUpdate ( ) ;
662662 }
663663
664- this . __oldTextGenerator = textGenerator ;
664+ this . __oldTextGenerator = generator ;
665665 this . __oldContext = context ;
666666 }
667667 }
0 commit comments