| OLD | NEW |
| (Empty) |
| 1 | |
| 2 Polymer('paper-icon-button',{ | |
| 3 | |
| 4 publish: { | |
| 5 | |
| 6 /** | |
| 7 * The URL of an image for the icon. If the src property is specified, | |
| 8 * the icon property should not be. | |
| 9 * | |
| 10 * @attribute src | |
| 11 * @type string | |
| 12 * @default '' | |
| 13 */ | |
| 14 src: '', | |
| 15 | |
| 16 /** | |
| 17 * Specifies the icon name or index in the set of icons available in | |
| 18 * the icon's icon set. If the icon property is specified, | |
| 19 * the src property should not be. | |
| 20 * | |
| 21 * @attribute icon | |
| 22 * @type string | |
| 23 * @default '' | |
| 24 */ | |
| 25 icon: '', | |
| 26 | |
| 27 recenteringTouch: true, | |
| 28 fill: false | |
| 29 | |
| 30 }, | |
| 31 | |
| 32 iconChanged: function(oldIcon) { | |
| 33 var label = this.getAttribute('aria-label'); | |
| 34 if (!label || label === oldIcon) { | |
| 35 this.setAttribute('aria-label', this.icon); | |
| 36 } | |
| 37 } | |
| 38 | |
| 39 }); | |
| 40 | |
| 41 | |
| OLD | NEW |