MCPcopy Create free account
hub / github.com/TruthHun/BookStack / Selection

Function Selection

static/mergely/lib/codemirror.js:2013–2016  ·  view source on GitHub ↗
(ranges, primIndex)

Source from the content-addressed store, hash-verified

2011 // which one is the primary selection (the one that's scrolled into
2012 // view, that getCursor returns, etc).
2013 function Selection(ranges, primIndex) {
2014 this.ranges = ranges;
2015 this.primIndex = primIndex;
2016 }
2017
2018 Selection.prototype = {
2019 primary: function() { return this.ranges[this.primIndex]; },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected