| OLD | NEW |
| (Empty) |
| 1 | |
| 2 | |
| 3 Polymer({ | |
| 4 | |
| 5 is: 'paper-button', | |
| 6 | |
| 7 behaviors: [ | |
| 8 Polymer.PaperButtonBehavior | |
| 9 ], | |
| 10 | |
| 11 properties: { | |
| 12 | |
| 13 /** | |
| 14 * If true, the button should be styled with a shadow. | |
| 15 */ | |
| 16 raised: { | |
| 17 type: Boolean, | |
| 18 reflectToAttribute: true, | |
| 19 value: false, | |
| 20 observer: '_calculateElevation' | |
| 21 } | |
| 22 }, | |
| 23 | |
| 24 _calculateElevation: function() { | |
| 25 if (!this.raised) { | |
| 26 this._elevation = 0; | |
| 27 } else { | |
| 28 Polymer.PaperButtonBehaviorImpl._calculateElevation.apply(this); | |
| 29 } | |
| 30 }, | |
| 31 | |
| 32 _computeContentClass: function(receivedFocusFromKeyboard) { | |
| 33 var className = 'content '; | |
| 34 if (receivedFocusFromKeyboard) { | |
| 35 className += ' keyboard-focus'; | |
| 36 } | |
| 37 return className; | |
| 38 } | |
| 39 }); | |
| 40 | |
| OLD | NEW |