MCPcopy
hub / github.com/witheve/Eve / countDirtyView

Function countDirtyView

src/codemirror.js:3407–3414  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

3405 // Count the number of lines in the view whose DOM representation is
3406 // out of date (or nonexistent).
3407 function countDirtyView(cm) {
3408 var view = cm.display.view, dirty = 0;
3409 for (var i = 0; i < view.length; i++) {
3410 var lineView = view[i];
3411 if (!lineView.hidden && (!lineView.node || lineView.changes)) ++dirty;
3412 }
3413 return dirty;
3414 }
3415
3416 // EVENT HANDLERS
3417

Callers 1

updateDisplayIfNeededFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected