(cm)
| 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 |
no outgoing calls
no test coverage detected