OLD | NEW |
1 <!-- | 1 <!-- |
2 @license | 2 @license |
3 Copyright (c) 2016 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2016 The Polymer Project Authors. All rights reserved. |
4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
9 --> | 9 --> |
10 | 10 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 ], | 68 ], |
69 | 69 |
70 listeners: { | 70 listeners: { |
71 'down': '_rippleDown', | 71 'down': '_rippleDown', |
72 'up': '_rippleUp', | 72 'up': '_rippleUp', |
73 'focus': '_rippleDown', | 73 'focus': '_rippleDown', |
74 'blur': '_rippleUp', | 74 'blur': '_rippleUp', |
75 }, | 75 }, |
76 | 76 |
77 _rippleDown: function() { | 77 _rippleDown: function() { |
78 this.getRipple().downAction(); | 78 this.getRipple().uiDownAction(); |
79 }, | 79 }, |
80 | 80 |
81 _rippleUp: function() { | 81 _rippleUp: function() { |
82 this.getRipple().upAction(); | 82 this.getRipple().uiUpAction(); |
83 }, | 83 }, |
84 | 84 |
85 /** | 85 /** |
86 * @param {...*} var_args | 86 * @param {...*} var_args |
87 */ | 87 */ |
88 ensureRipple: function(var_args) { | 88 ensureRipple: function(var_args) { |
89 var lastRipple = this._ripple; | 89 var lastRipple = this._ripple; |
90 Polymer.PaperRippleBehavior.ensureRipple.apply(this, arguments); | 90 Polymer.PaperRippleBehavior.ensureRipple.apply(this, arguments); |
91 if (this._ripple && this._ripple !== lastRipple) { | 91 if (this._ripple && this._ripple !== lastRipple) { |
92 this._ripple.center = true; | 92 this._ripple.center = true; |
93 this._ripple.classList.add('circle'); | 93 this._ripple.classList.add('circle'); |
94 } | 94 } |
95 } | 95 } |
96 }); | 96 }); |
97 </script> | 97 </script> |
98 </dom-module> | 98 </dom-module> |
OLD | NEW |