(doc, array)
| 517 | else { return pos } |
| 518 | } |
| 519 | function clipPosArray(doc, array) { |
| 520 | var out = []; |
| 521 | for (var i = 0; i < array.length; i++) { out[i] = clipPos(doc, array[i]); } |
| 522 | return out |
| 523 | } |
| 524 | |
| 525 | // Optimize some code when these features are not used. |
| 526 | var sawReadOnlySpans = false; |