MCPcopy Create free account
hub / github.com/breck7/scroll / countDirtyView

Function countDirtyView

external/.scrollLibs.js:5745–5755  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

5743 // Count the number of lines in the view whose DOM representation is
5744 // out of date (or nonexistent).
5745 function countDirtyView(cm) {
5746 var view = cm.display.view,
5747 dirty = 0
5748 for (var i = 0; i < view.length; i++) {
5749 var lineView = view[i]
5750 if (!lineView.hidden && (!lineView.node || lineView.changes)) {
5751 ++dirty
5752 }
5753 }
5754 return dirty
5755 }
5756
5757 // HIGHLIGHT WORKER
5758

Callers 1

updateDisplayIfNeededFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected