MCPcopy Index your code
hub / github.com/csev/py4e / countDirtyView

Function countDirtyView

tools/pythonauto/static/codemirrorepl/codemirror.js:2168–2175  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2166 // Count the number of lines in the view whose DOM representation is
2167 // out of date (or nonexistent).
2168 function countDirtyView(cm) {
2169 var view = cm.display.view, dirty = 0;
2170 for (var i = 0; i < view.length; i++) {
2171 var lineView = view[i];
2172 if (!lineView.hidden && (!lineView.node || lineView.changes)) ++dirty;
2173 }
2174 return dirty;
2175 }
2176
2177 // INPUT HANDLING
2178

Callers 1

updateDisplayInnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected