| Index: third_party/polymer/v1_0/components-chromium/paper-fab/paper-fab-extracted.js
|
| diff --git a/third_party/polymer/v1_0/components-chromium/paper-fab/paper-fab-extracted.js b/third_party/polymer/v1_0/components-chromium/paper-fab/paper-fab-extracted.js
|
| index e2e94d3db40807035c60657279bf66a9200bc2d6..2121d0d14e0da322c54e0352437cb5ff2489da9a 100644
|
| --- a/third_party/polymer/v1_0/components-chromium/paper-fab/paper-fab-extracted.js
|
| +++ b/third_party/polymer/v1_0/components-chromium/paper-fab/paper-fab-extracted.js
|
| @@ -1,49 +1,54 @@
|
| Polymer({
|
| - is: 'paper-fab',
|
| + is: 'paper-fab',
|
|
|
| - behaviors: [
|
| - Polymer.PaperButtonBehavior
|
| - ],
|
| + behaviors: [
|
| + Polymer.PaperButtonBehavior
|
| + ],
|
|
|
| - properties: {
|
| - /**
|
| - * The URL of an image for the icon. If the src property is specified,
|
| - * the icon property should not be.
|
| - *
|
| - * @attribute src
|
| - * @type string
|
| - * @default ''
|
| - */
|
| - src: {
|
| - type: String,
|
| - value: ''
|
| + properties: {
|
| + /**
|
| + * The URL of an image for the icon. If the src property is specified,
|
| + * the icon property should not be.
|
| + */
|
| + src: {
|
| + type: String,
|
| + value: ''
|
| + },
|
| +
|
| + /**
|
| + * 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,
|
| + value: ''
|
| + },
|
| +
|
| + /**
|
| + * Set this to true to style this is a "mini" FAB.
|
| + */
|
| + mini: {
|
| + type: Boolean,
|
| + value: false,
|
| + reflectToAttribute: true
|
| + },
|
| +
|
| + /**
|
| + * The label displayed in the badge. The label is centered, and ideally
|
| + * should have very few characters.
|
| + */
|
| + label: {
|
| + type: String,
|
| + observer: '_labelChanged'
|
| + }
|
| },
|
|
|
| - /**
|
| - * 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.
|
| - *
|
| - * @attribute icon
|
| - * @type string
|
| - * @default ''
|
| - */
|
| - icon: {
|
| - type: String,
|
| - value: ''
|
| + _labelChanged: function() {
|
| + this.setAttribute('aria-label', this.label);
|
| },
|
|
|
| - /**
|
| - * Set this to true to style this is a "mini" FAB.
|
| - *
|
| - * @attribute mini
|
| - * @type boolean
|
| - * @default false
|
| - */
|
| - mini: {
|
| - type: Boolean,
|
| - value: false,
|
| - reflectToAttribute: true
|
| + _computeIsIconFab: function(icon, src) {
|
| + return (icon.length > 0) || (src.length > 0);
|
| }
|
| - }
|
| - });
|
| + });
|
|
|