MCPcopy
hub / github.com/witheve/Eve / clearSelectionEvents

Function clearSelectionEvents

src/codemirror.js:7926–7932  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

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.

Callers 2

lastChangeEventFunction · 0.85
addSelectionToHistoryFunction · 0.85

Calls 1

lstFunction · 0.85

Tested by

no test coverage detected