()
| 170 | } |
| 171 | |
| 172 | setInterval() { |
| 173 | // make sure not to have multiple intervals going... |
| 174 | this.clearInterval(); |
| 175 | if (this.props.interval) { |
| 176 | this.cycleInterval = setInterval(() => { |
| 177 | this.props.next(); |
| 178 | }, parseInt(this.props.interval, 10)); |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | clearInterval() { |
| 183 | clearInterval(this.cycleInterval); |
no test coverage detected