()
| 271 | } |
| 272 | |
| 273 | function updatePage() { |
| 274 | const offset = (pages + 1) * LIMIT; |
| 275 | const hasMore = offset < currentHints.length; |
| 276 | |
| 277 | // if the scroll is at the bottom |
| 278 | if ($ul.scrollTop + $ul.clientHeight >= $ul.scrollHeight && hasMore) { |
| 279 | pages++; |
| 280 | updateUlNow(currentHints, pages); |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | /** |
| 285 | * First time updates the hint instantly, then debounce |
nothing calls this directly
no outgoing calls
no test coverage detected