(array)
| 6559 | // Pop all selection events off the end of a history array. Stop at |
| 6560 | // a change event. |
| 6561 | function clearSelectionEvents(array) { |
| 6562 | while (array.length) { |
| 6563 | var last = lst(array); |
| 6564 | if (last.ranges) array.pop(); |
| 6565 | else break; |
| 6566 | } |
| 6567 | } |
| 6568 | |
| 6569 | // Find the top change event in the history. Pop off selection |
| 6570 | // events that are in the way. |
no test coverage detected