| OLD | NEW |
| (Empty) | |
| 1 |
| 2 |
| 3 /** |
| 4 * `Polymer.PaperInkyFocusBehavior` implements a ripple when the element has k
eyboard focus. |
| 5 * |
| 6 * @polymerBehavior Polymer.PaperInkyFocusBehavior |
| 7 */ |
| 8 Polymer.PaperInkyFocusBehaviorImpl = { |
| 9 |
| 10 observers: [ |
| 11 '_focusedChanged(receivedFocusFromKeyboard)' |
| 12 ], |
| 13 |
| 14 _focusedChanged: function(receivedFocusFromKeyboard) { |
| 15 if (!this.$.ink) { |
| 16 return; |
| 17 } |
| 18 |
| 19 this.$.ink.holdDown = receivedFocusFromKeyboard; |
| 20 } |
| 21 |
| 22 }; |
| 23 |
| 24 /** @polymerBehavior Polymer.PaperInkyFocusBehavior */ |
| 25 Polymer.PaperInkyFocusBehavior = [ |
| 26 Polymer.IronButtonState, |
| 27 Polymer.IronControlState, |
| 28 Polymer.PaperInkyFocusBehaviorImpl |
| 29 ]; |
| 30 |
| OLD | NEW |