| Index: third_party/polymer/v1_0/components-chromium/paper-icon-button/paper-icon-button-extracted.js
|
| diff --git a/third_party/polymer/v1_0/components-chromium/paper-icon-button/paper-icon-button-extracted.js b/third_party/polymer/v1_0/components-chromium/paper-icon-button/paper-icon-button-extracted.js
|
| index c04bcd6ad3142e1a3d9118018107a132765d6c46..e09004c884998eb96b93c0c45b8c6054dedc15e8 100644
|
| --- a/third_party/polymer/v1_0/components-chromium/paper-icon-button/paper-icon-button-extracted.js
|
| +++ b/third_party/polymer/v1_0/components-chromium/paper-icon-button/paper-icon-button-extracted.js
|
| @@ -1,49 +1,48 @@
|
| +Polymer({
|
| + is: 'paper-icon-button',
|
|
|
| - Polymer({
|
| - is: 'paper-icon-button',
|
| -
|
| - hostAttributes: {
|
| - role: 'button',
|
| - tabindex: '0'
|
| - },
|
| -
|
| - behaviors: [
|
| - Polymer.PaperInkyFocusBehavior
|
| - ],
|
| -
|
| - properties: {
|
| - /**
|
| - * The URL of an image for the icon. If the src property is specified,
|
| - * the icon property should not be.
|
| - */
|
| - src: {
|
| - type: String
|
| + hostAttributes: {
|
| + role: 'button',
|
| + tabindex: '0'
|
| },
|
|
|
| - /**
|
| - * Specifies the icon name or index in the set of icons available in
|
| - * the icon's icon set. If the icon property is specified,
|
| - * the src property should not be.
|
| - */
|
| - icon: {
|
| - type: String
|
| + behaviors: [
|
| + Polymer.PaperInkyFocusBehavior
|
| + ],
|
| +
|
| + properties: {
|
| + /**
|
| + * The URL of an image for the icon. If the src property is specified,
|
| + * the icon property should not be.
|
| + */
|
| + src: {
|
| + type: String
|
| + },
|
| +
|
| + /**
|
| + * Specifies the icon name or index in the set of icons available in
|
| + * the icon's icon set. If the icon property is specified,
|
| + * the src property should not be.
|
| + */
|
| + icon: {
|
| + type: String
|
| + },
|
| +
|
| + /**
|
| + * Specifies the alternate text for the button, for accessibility.
|
| + */
|
| + alt: {
|
| + type: String,
|
| + observer: "_altChanged"
|
| + }
|
| },
|
|
|
| - /**
|
| - * Specifies the alternate text for the button, for accessibility.
|
| - */
|
| - alt: {
|
| - type: String,
|
| - observer: "_altChanged"
|
| - }
|
| - },
|
| -
|
| - _altChanged: function(newValue, oldValue) {
|
| - var label = this.getAttribute('aria-label');
|
| + _altChanged: function(newValue, oldValue) {
|
| + var label = this.getAttribute('aria-label');
|
|
|
| - // Don't stomp over a user-set aria-label.
|
| - if (!label || oldValue == label) {
|
| - this.setAttribute('aria-label', newValue);
|
| + // Don't stomp over a user-set aria-label.
|
| + if (!label || oldValue == label) {
|
| + this.setAttribute('aria-label', newValue);
|
| + }
|
| }
|
| - }
|
| - });
|
| + });
|
|
|