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