()
| 35 | } |
| 36 | |
| 37 | componentDidMount() { |
| 38 | this.togglers = findDOMElements(this.props.toggler); |
| 39 | if (this.togglers.length) { |
| 40 | this.removeEventListeners = addMultipleEventListeners( |
| 41 | this.togglers, |
| 42 | this.toggle, |
| 43 | this.props.toggleEvents, |
| 44 | ); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | componentWillUnmount() { |
| 49 | if (this.togglers.length && this.removeEventListeners) { |
nothing calls this directly
no test coverage detected