(element)
| 2420 | * @param {HTMLElement} element The element that will be upgraded. |
| 2421 | */ |
| 2422 | var MaterialSwitch = function MaterialSwitch(element) { |
| 2423 | this.element_ = element; |
| 2424 | // Initialize instance. |
| 2425 | this.init(); |
| 2426 | }; |
| 2427 | window['MaterialSwitch'] = MaterialSwitch; |
| 2428 | /** |
| 2429 | * Store constants in one place so they can be updated easily. |