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

Function BranchChunk

external/.scrollLibs.js:7574–7589  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

7572 }
7573
7574 function BranchChunk(children) {
7575 var this$1 = this
7576
7577 this.children = children
7578 var size = 0,
7579 height = 0
7580 for (var i = 0; i < children.length; ++i) {
7581 var ch = children[i]
7582 size += ch.chunkSize()
7583 height += ch.height
7584 ch.parent = this$1
7585 }
7586 this.size = size
7587 this.height = height
7588 this.parent = null
7589 }
7590
7591 BranchChunk.prototype = {
7592 chunkSize: function () {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected