(element)
| 32 | |
| 33 | |
| 34 | var Toggle = function(element) { |
| 35 | this.element = element; |
| 36 | this.classList = this.element.classList; |
| 37 | this.handle = this.element.querySelector(SELECTOR_SWITCH_HANDLE); |
| 38 | this.init(); |
| 39 | this.initEvent(); |
| 40 | }; |
| 41 | Toggle.prototype.init = function() { |
| 42 | this.toggleWidth = this.element.offsetWidth; |
| 43 | this.handleWidth = this.handle.offsetWidth; |
nothing calls this directly
no outgoing calls
no test coverage detected