| OLD | NEW |
| 1 Polymer({ | 1 |
| 2 Polymer({ |
| 2 is: 'paper-icon-button', | 3 is: 'paper-icon-button', |
| 3 | 4 |
| 4 hostAttributes: { | 5 hostAttributes: { |
| 5 role: 'button', | 6 role: 'button', |
| 6 tabindex: '0' | 7 tabindex: '0' |
| 7 }, | 8 }, |
| 8 | 9 |
| 9 behaviors: [ | 10 behaviors: [ |
| 10 Polymer.PaperInkyFocusBehavior | 11 Polymer.PaperInkyFocusBehavior |
| 11 ], | 12 ], |
| (...skipping 26 matching lines...) Expand all Loading... |
| 38 }, | 39 }, |
| 39 | 40 |
| 40 _altChanged: function(newValue, oldValue) { | 41 _altChanged: function(newValue, oldValue) { |
| 41 var label = this.getAttribute('aria-label'); | 42 var label = this.getAttribute('aria-label'); |
| 42 | 43 |
| 43 // Don't stomp over a user-set aria-label. | 44 // Don't stomp over a user-set aria-label. |
| 44 if (!label || oldValue == label) { | 45 if (!label || oldValue == label) { |
| 45 this.setAttribute('aria-label', newValue); | 46 this.setAttribute('aria-label', newValue); |
| 46 } | 47 } |
| 47 } | 48 } |
| 48 }); | 49 }); |
| OLD | NEW |