(array)
| 7924 | // Pop all selection events off the end of a history array. Stop at |
| 7925 | // a change event. |
| 7926 | function clearSelectionEvents(array) { |
| 7927 | while (array.length) { |
| 7928 | var last = lst(array); |
| 7929 | if (last.ranges) array.pop(); |
| 7930 | else break; |
| 7931 | } |
| 7932 | } |
| 7933 | |
| 7934 | // Find the top change event in the history. Pop off selection |
| 7935 | // events that are in the way. |
no test coverage detected