OLD | NEW |
1 | 1 |
2 | 2 |
3 /** | 3 /** |
4 * @demo demo/index.html | 4 * @demo demo/index.html |
5 * @polymerBehavior | 5 * @polymerBehavior Polymer.IronButtonState |
6 */ | 6 */ |
7 Polymer.IronButtonStateImpl = { | 7 Polymer.IronButtonStateImpl = { |
8 | 8 |
9 properties: { | 9 properties: { |
10 | 10 |
11 /** | 11 /** |
12 * If true, the user is currently holding down the button. | 12 * If true, the user is currently holding down the button. |
13 */ | 13 */ |
14 pressed: { | 14 pressed: { |
15 type: Boolean, | 15 type: Boolean, |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // provide hook for follow-on behaviors to react to button-state | 156 // provide hook for follow-on behaviors to react to button-state |
157 | 157 |
158 _changedButtonState: function() { | 158 _changedButtonState: function() { |
159 if (this._buttonStateChanged) { | 159 if (this._buttonStateChanged) { |
160 this._buttonStateChanged(); // abstract | 160 this._buttonStateChanged(); // abstract |
161 } | 161 } |
162 } | 162 } |
163 | 163 |
164 }; | 164 }; |
165 | 165 |
166 /** @polymerBehavior Polymer.IronButtonState */ | 166 /** @polymerBehavior */ |
167 Polymer.IronButtonState = [ | 167 Polymer.IronButtonState = [ |
168 Polymer.IronA11yKeysBehavior, | 168 Polymer.IronA11yKeysBehavior, |
169 Polymer.IronButtonStateImpl | 169 Polymer.IronButtonStateImpl |
170 ]; | 170 ]; |
171 | 171 |
OLD | NEW |