MCPcopy Create free account
hub / github.com/dropbox/hackpad / updateTableOfContents

Function updateTableOfContents

etherpad/src/static/js/ace2/ace_toc.js:18–149  ·  view source on GitHub ↗

* Progressively scans through the document looking for the latest valid * TOC entries. Will scan for certain amount of time (isTimeUp) so that the * JS doesn't freeze up and then returns, even if it's not finished yet, and * later returns on the next idle cycle to continue updating.

(isTimeUp)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 11

updateTOCFunction · 0.85
getRootMethod · 0.80
splitMethod · 0.80
isTimeUpFunction · 0.70
_trimFunction · 0.70
execMethod · 0.65
hasNextMethod · 0.45
nextMethod · 0.45
indexOfMethod · 0.45
pushMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected