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

Function LeafChunk

external/.scrollLibs.js:7514–7525  ·  view source on GitHub ↗
(lines)

Source from the content-addressed store, hash-verified

7512 // See also http://marijnhaverbeke.nl/blog/codemirror-line-tree.html
7513
7514 function LeafChunk(lines) {
7515 var this$1 = this
7516
7517 this.lines = lines
7518 this.parent = null
7519 var height = 0
7520 for (var i = 0; i < lines.length; ++i) {
7521 lines[i].parent = this$1
7522 height += lines[i].height
7523 }
7524 this.height = height
7525 }
7526
7527 LeafChunk.prototype = {
7528 chunkSize: function () {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected