()
| 56 | timer: null, |
| 57 | times: 0, |
| 58 | track() { |
| 59 | // record track times |
| 60 | this.times += 1; |
| 61 | |
| 62 | // try to mark check status |
| 63 | clearTimeout(this.timer); |
| 64 | this.timer = setTimeout(() => { |
| 65 | this.isChecked = true; |
| 66 | }, config.system.loopCheckTimeout); |
| 67 | |
| 68 | // throw warning if the times of continuous calls large than the maximum times |
| 69 | if (this.times > config.system.loopCheckMaxCalls) { |
| 70 | error(ERRORS.INFINITE_LOOP); |
| 71 | this.isChecked = true; |
| 72 | } |
| 73 | }, |
| 74 | }; |
| 75 | |
| 76 | export const scrollBarStorage = { |
nothing calls this directly
no test coverage detected
searching dependent graphs…