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