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

Function countDirtyView

static/editor.md/lib/codemirror/lib/codemirror.js:3277–3284  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

3275 // Count the number of lines in the view whose DOM representation is
3276 // out of date (or nonexistent).
3277 function countDirtyView(cm) {
3278 var view = cm.display.view, dirty = 0;
3279 for (var i = 0; i < view.length; i++) {
3280 var lineView = view[i];
3281 if (!lineView.hidden && (!lineView.node || lineView.changes)) ++dirty;
3282 }
3283 return dirty;
3284 }
3285
3286 // EVENT HANDLERS
3287

Callers 1

updateDisplayIfNeededFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected