(cm)
| 3384 | // Count the number of lines in the view whose DOM representation is |
| 3385 | // out of date (or nonexistent). |
| 3386 | function countDirtyView(cm) { |
| 3387 | var view = cm.display.view, dirty = 0; |
| 3388 | for (var i = 0; i < view.length; i++) { |
| 3389 | var lineView = view[i]; |
| 3390 | if (!lineView.hidden && (!lineView.node || lineView.changes)) ++dirty; |
| 3391 | } |
| 3392 | return dirty; |
| 3393 | } |
| 3394 | |
| 3395 | // EVENT HANDLERS |
| 3396 |
no outgoing calls
no test coverage detected