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

Function Selection

external/.scrollLibs.js:6280–6283  ·  view source on GitHub ↗
(ranges, primIndex)

Source from the content-addressed store, hash-verified

6278 // which one is the primary selection (the one that's scrolled into
6279 // view, that getCursor returns, etc).
6280 var Selection = function (ranges, primIndex) {
6281 this.ranges = ranges
6282 this.primIndex = primIndex
6283 }
6284
6285 Selection.prototype.primary = function () {
6286 return this.ranges[this.primIndex]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected