(cm, lineView, lineN, dims)
| 753 | // lineView.changes. This updates the relevant part of the line's |
| 754 | // DOM structure. |
| 755 | function updateLineForChanges(cm, lineView, lineN, dims) { |
| 756 | for (var j = 0; j < lineView.changes.length; j++) { |
| 757 | var type = lineView.changes[j]; |
| 758 | if (type == "text") updateLineText(cm, lineView); |
| 759 | else if (type == "gutter") updateLineGutter(cm, lineView, lineN, dims); |
| 760 | else if (type == "class") updateLineClasses(lineView); |
| 761 | else if (type == "widget") updateLineWidgets(lineView, dims); |
| 762 | } |
| 763 | lineView.changes = null; |
| 764 | } |
| 765 | |
| 766 | // Lines with gutter elements, widgets or a background class need to |
| 767 | // be wrapped, and have the extra elements added to the wrapper div |
no test coverage detected