OLD | NEW |
1 | 1 |
2 | 2 |
| 3 /** @polymerBehavior */ |
3 Polymer.PaperRadioButtonInk = { | 4 Polymer.PaperRadioButtonInk = { |
4 | 5 |
5 observers: [ | 6 observers: [ |
6 `_focusedChanged(focused)` | 7 '_focusedChanged(receivedFocusFromKeyboard)' |
7 ], | 8 ], |
8 | 9 |
9 _focusedChanged: function(focused) { | 10 _focusedChanged: function(receivedFocusFromKeyboard) { |
10 if (!this.$.ink) | 11 if (!this.$.ink) { |
11 return; | 12 return; |
| 13 } |
12 | 14 |
13 if (focused) { | 15 this.$.ink.holdDown = receivedFocusFromKeyboard; |
14 var rect = this.$.ink.getBoundingClientRect(); | |
15 this.$.ink.mousedownAction(); | |
16 } else { | |
17 this.$.ink.mouseupAction(); | |
18 } | |
19 } | 16 } |
20 | 17 |
21 }; | 18 }; |
22 | 19 |
| 20 /** @polymerBehavior */ |
23 Polymer.PaperRadioButtonBehavior = [ | 21 Polymer.PaperRadioButtonBehavior = [ |
| 22 Polymer.IronButtonState, |
24 Polymer.IronControlState, | 23 Polymer.IronControlState, |
25 Polymer.IronButtonState, | |
26 Polymer.PaperRadioButtonInk | 24 Polymer.PaperRadioButtonInk |
27 ]; | 25 ]; |
28 | 26 |
OLD | NEW |