| OLD | NEW |
| 1 Polymer({ | 1 Polymer({ |
| 2 is: 'paper-fab', | 2 is: 'paper-fab', |
| 3 | 3 |
| 4 behaviors: [ | 4 behaviors: [ |
| 5 Polymer.PaperButtonBehavior | 5 Polymer.PaperButtonBehavior |
| 6 ], | 6 ], |
| 7 | 7 |
| 8 properties: { | 8 properties: { |
| 9 /** | 9 /** |
| 10 * The URL of an image for the icon. If the src property is specified, | 10 * The URL of an image for the icon. If the src property is specified, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 /** | 36 /** |
| 37 * Set this to true to style this is a "mini" FAB. | 37 * Set this to true to style this is a "mini" FAB. |
| 38 * | 38 * |
| 39 * @attribute mini | 39 * @attribute mini |
| 40 * @type boolean | 40 * @type boolean |
| 41 * @default false | 41 * @default false |
| 42 */ | 42 */ |
| 43 mini: { | 43 mini: { |
| 44 type: Boolean, | 44 type: Boolean, |
| 45 value: false | 45 value: false, |
| 46 reflectToAttribute: true |
| 46 } | 47 } |
| 47 }, | 48 }, |
| 48 | 49 |
| 49 _computeContentClass: function(receivedFocusFromKeyboard) { | 50 _computeContentClass: function(receivedFocusFromKeyboard) { |
| 50 var className = 'content'; | 51 var className = 'content'; |
| 51 if (receivedFocusFromKeyboard) { | 52 if (receivedFocusFromKeyboard) { |
| 52 className += ' keyboard-focus'; | 53 className += ' keyboard-focus'; |
| 53 } | 54 } |
| 54 return className; | 55 return className; |
| 55 } | 56 } |
| 56 | 57 |
| 57 }); | 58 }); |
| OLD | NEW |