(handle, op)
| 1480 | } |
| 1481 | |
| 1482 | function changeLine(handle, op) { |
| 1483 | var no = handle, line = handle; |
| 1484 | if (typeof handle == "number") line = getLine(clipLine(handle)); |
| 1485 | else no = lineNo(handle); |
| 1486 | if (no == null) return null; |
| 1487 | if (op(line, no)) changes.push({from: no, to: no + 1}); |
| 1488 | else return null; |
| 1489 | return line; |
| 1490 | } |
| 1491 | function setLineClass(handle, className, bgClassName) { |
| 1492 | return changeLine(handle, function(line) { |
| 1493 | if (line.className != className || line.bgClassName != bgClassName) { |
no test coverage detected