| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * `settings-toggle-button` is a toggle that controls a supplied preference. | 7 * `settings-toggle-button` is a toggle that controls a supplied preference. |
| 8 */ | 8 */ |
| 9 Polymer({ | 9 Polymer({ |
| 10 is: 'settings-toggle-button', | 10 is: 'settings-toggle-button', |
| 11 | 11 |
| 12 behaviors: [SettingsBooleanControlBehavior], | 12 behaviors: [SettingsBooleanControlBehavior], |
| 13 |
| 14 /** @private */ |
| 15 onLabelWrapperTap_: function() { |
| 16 if (!this.controlDisabled_()) |
| 17 this.checked = !this.checked; |
| 18 }, |
| 13 }); | 19 }); |
| OLD | NEW |