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

Function simpleSelection

external/.scrollLibs.js:6386–6388  ·  view source on GitHub ↗
(anchor, head)

Source from the content-addressed store, hash-verified

6384 }
6385
6386 function simpleSelection(anchor, head) {
6387 return new Selection([new Range(anchor, head || anchor)], 0)
6388 }
6389
6390 // Compute the position of the end of a change (its 'to' property
6391 // refers to the pre-change end).

Callers 5

setSimpleSelectionFunction · 0.85
DocFunction · 0.85
.scrollLibs.jsFile · 0.85
loadFileFunction · 0.85
onDropFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected