| OLD | NEW |
| 1 /** | 1 /** |
| 2 * `Polymer.PaperRippleBehavior` dynamically implements a ripple | 2 * `Polymer.PaperRippleBehavior` dynamically implements a ripple |
| 3 * when the element has focus via pointer or keyboard. | 3 * when the element has focus via pointer or keyboard. |
| 4 * | 4 * |
| 5 * NOTE: This behavior is intended to be used in conjunction with and after | 5 * NOTE: This behavior is intended to be used in conjunction with and after |
| 6 * `Polymer.IronButtonState` and `Polymer.IronControlState`. | 6 * `Polymer.IronButtonState` and `Polymer.IronControlState`. |
| 7 * | 7 * |
| 8 * @polymerBehavior Polymer.PaperRippleBehavior | 8 * @polymerBehavior Polymer.PaperRippleBehavior |
| 9 */ | 9 */ |
| 10 Polymer.PaperRippleBehavior = { | 10 Polymer.PaperRippleBehavior = { |
| 11 | |
| 12 properties: { | 11 properties: { |
| 13 /** | 12 /** |
| 14 * If true, the element will not produce a ripple effect when interacted | 13 * If true, the element will not produce a ripple effect when interacted |
| 15 * with via the pointer. | 14 * with via the pointer. |
| 16 */ | 15 */ |
| 17 noink: { | 16 noink: { |
| 18 type: Boolean, | 17 type: Boolean, |
| 19 observer: '_noinkChanged' | 18 observer: '_noinkChanged' |
| 20 }, | 19 }, |
| 21 | 20 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 _createRipple: function() { | 101 _createRipple: function() { |
| 103 return /** @type {!PaperRippleElement} */ ( | 102 return /** @type {!PaperRippleElement} */ ( |
| 104 document.createElement('paper-ripple')); | 103 document.createElement('paper-ripple')); |
| 105 }, | 104 }, |
| 106 | 105 |
| 107 _noinkChanged: function(noink) { | 106 _noinkChanged: function(noink) { |
| 108 if (this.hasRipple()) { | 107 if (this.hasRipple()) { |
| 109 this._ripple.noink = noink; | 108 this._ripple.noink = noink; |
| 110 } | 109 } |
| 111 } | 110 } |
| 112 | |
| 113 }; | 111 }; |
| OLD | NEW |