MCPcopy Create free account
hub / github.com/TruthHun/BookStack / resetView

Function resetView

static/mergely/lib/codemirror.js:3320–3324  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

3318
3319 // Clear the view.
3320 function resetView(cm) {
3321 cm.display.viewFrom = cm.display.viewTo = cm.doc.first;
3322 cm.display.view = [];
3323 cm.display.viewOffset = 0;
3324 }
3325
3326 // Find the view element corresponding to a given line. Return null
3327 // when the line isn't visible.

Callers 2

updateDisplayIfNeededFunction · 0.70
regChangeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected