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

Function countDirtyView

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

Source from the content-addressed store, hash-verified

3384 // Count the number of lines in the view whose DOM representation is
3385 // out of date (or nonexistent).
3386 function countDirtyView(cm) {
3387 var view = cm.display.view, dirty = 0;
3388 for (var i = 0; i < view.length; i++) {
3389 var lineView = view[i];
3390 if (!lineView.hidden && (!lineView.node || lineView.changes)) ++dirty;
3391 }
3392 return dirty;
3393 }
3394
3395 // EVENT HANDLERS
3396

Callers 1

updateDisplayIfNeededFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected