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

Function pushSelectionToHistory

external/.scrollLibs.js:6744–6749  ·  view source on GitHub ↗
(sel, dest)

Source from the content-addressed store, hash-verified

6742 }
6743
6744 function pushSelectionToHistory(sel, dest) {
6745 var top = lst(dest)
6746 if (!(top && top.ranges && top.equals(sel))) {
6747 dest.push(sel)
6748 }
6749 }
6750
6751 // Used to store marked span information in the history.
6752 function attachLocalSpans(doc, change, from, to) {

Callers 3

addChangeToHistoryFunction · 0.85
addSelectionToHistoryFunction · 0.85
makeChangeFromHistoryFunction · 0.85

Calls 1

lstFunction · 0.85

Tested by

no test coverage detected