MCPcopy Create free account
hub / github.com/DHTMLX/gantt / countDirtyView

Function countDirtyView

samples/common/codehighlight/codemirror.js:3125–3132  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

3123 // Count the number of lines in the view whose DOM representation is
3124 // out of date (or nonexistent).
3125 function countDirtyView(cm) {
3126 var view = cm.display.view, dirty = 0;
3127 for (var i = 0; i < view.length; i++) {
3128 var lineView = view[i];
3129 if (!lineView.hidden && (!lineView.node || lineView.changes)) { ++dirty; }
3130 }
3131 return dirty
3132 }
3133
3134 function updateSelection(cm) {
3135 cm.display.input.showSelection(cm.display.input.prepareSelection());

Callers 1

updateDisplayIfNeededFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected