MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / deepCopy

Method deepCopy

lib/web/CodeMirror/src/model/selection.js:27–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 }
26
27 deepCopy() {
28 let out = []
29 for (let i = 0; i < this.ranges.length; i++)
30 out[i] = new Range(copyPos(this.ranges[i].anchor), copyPos(this.ranges[i].head))
31 return new Selection(out, this.primIndex)
32 }
33
34 somethingSelected() {
35 for (let i = 0; i < this.ranges.length; i++)

Callers 2

rebaseHistArrayFunction · 0.80
rebaseHistArrayFunction · 0.80

Calls 1

copyPosFunction · 0.90

Tested by

no test coverage detected