()
| 28 | |
| 29 | |
| 30 | handleDisplay(){ |
| 31 | const {display} = this.state; |
| 32 | const {delay} = this.props; |
| 33 | this.setState({ |
| 34 | display: !display |
| 35 | }); |
| 36 | |
| 37 | if (!display ) { |
| 38 | this._timer = setTimeout(() => this.setState({ display: false}), delay); |
| 39 | } else { |
| 40 | this.clearTimer() |
| 41 | } |
| 42 | }, |
| 43 | |
| 44 | clearTimer(){ |
| 45 | if (this._timer) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…