(array)
| 6636 | // Pop all selection events off the end of a history array. Stop at |
| 6637 | // a change event. |
| 6638 | function clearSelectionEvents(array) { |
| 6639 | while (array.length) { |
| 6640 | var last = lst(array) |
| 6641 | if (last.ranges) { |
| 6642 | array.pop() |
| 6643 | } else { |
| 6644 | break |
| 6645 | } |
| 6646 | } |
| 6647 | } |
| 6648 | |
| 6649 | // Find the top change event in the history. Pop off selection |
| 6650 | // events that are in the way. |
no test coverage detected