| OLD | NEW |
| 1 /** @polymerBehavior Polymer.PaperButtonBehavior */ | 1 /** @polymerBehavior Polymer.PaperButtonBehavior */ |
| 2 Polymer.PaperButtonBehaviorImpl = { | 2 Polymer.PaperButtonBehaviorImpl = { |
| 3 | |
| 4 properties: { | 3 properties: { |
| 5 | |
| 6 /** | 4 /** |
| 7 * The z-depth of this element, from 0-5. Setting to 0 will remove the | 5 * The z-depth of this element, from 0-5. Setting to 0 will remove the |
| 8 * shadow, and each increasing number greater than 0 will be "deeper" | 6 * shadow, and each increasing number greater than 0 will be "deeper" |
| 9 * than the last. | 7 * than the last. |
| 10 * | 8 * |
| 11 * @attribute elevation | 9 * @attribute elevation |
| 12 * @type number | 10 * @type number |
| 13 * @default 1 | 11 * @default 1 |
| 14 */ | 12 */ |
| 15 elevation: { | 13 elevation: { |
| 16 type: Number, | 14 type: Number, |
| 17 reflectToAttribute: true, | 15 reflectToAttribute: true, |
| 18 readOnly: true | 16 readOnly: true |
| 19 } | 17 } |
| 20 | |
| 21 }, | 18 }, |
| 22 | 19 |
| 23 observers: [ | 20 observers: [ |
| 24 '_calculateElevation(focused, disabled, active, pressed, receivedFocusFrom
Keyboard)', | 21 '_calculateElevation(focused, disabled, active, pressed, receivedFocusFrom
Keyboard)', |
| 25 '_computeKeyboardClass(receivedFocusFromKeyboard)' | 22 '_computeKeyboardClass(receivedFocusFromKeyboard)' |
| 26 ], | 23 ], |
| 27 | 24 |
| 28 hostAttributes: { | 25 hostAttributes: { |
| 29 role: 'button', | 26 role: 'button', |
| 30 tabindex: '0', | 27 tabindex: '0', |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 * create a ripple up effect. | 63 * create a ripple up effect. |
| 67 * | 64 * |
| 68 * @param {!KeyboardEvent} event . | 65 * @param {!KeyboardEvent} event . |
| 69 */ | 66 */ |
| 70 _spaceKeyUpHandler: function(event) { | 67 _spaceKeyUpHandler: function(event) { |
| 71 Polymer.IronButtonStateImpl._spaceKeyUpHandler.call(this, event); | 68 Polymer.IronButtonStateImpl._spaceKeyUpHandler.call(this, event); |
| 72 if (this.hasRipple()) { | 69 if (this.hasRipple()) { |
| 73 this._ripple.uiUpAction(); | 70 this._ripple.uiUpAction(); |
| 74 } | 71 } |
| 75 } | 72 } |
| 76 | |
| 77 }; | 73 }; |
| 78 | 74 |
| 79 /** @polymerBehavior */ | 75 /** @polymerBehavior */ |
| 80 Polymer.PaperButtonBehavior = [ | 76 Polymer.PaperButtonBehavior = [ |
| 81 Polymer.IronButtonState, | 77 Polymer.IronButtonState, |
| 82 Polymer.IronControlState, | 78 Polymer.IronControlState, |
| 83 Polymer.PaperRippleBehavior, | 79 Polymer.PaperRippleBehavior, |
| 84 Polymer.PaperButtonBehaviorImpl | 80 Polymer.PaperButtonBehaviorImpl |
| 85 ]; | 81 ]; |
| OLD | NEW |