MCPcopy Create free account
hub / github.com/breck7/scroll / clearSelectionEvents

Function clearSelectionEvents

external/.scrollLibs.js:6638–6647  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

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.

Callers 2

lastChangeEventFunction · 0.85
addSelectionToHistoryFunction · 0.85

Calls 1

lstFunction · 0.85

Tested by

no test coverage detected