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

Function BranchChunk

static/mergely/lib/codemirror.js:7263–7274  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

7261 };
7262
7263 function BranchChunk(children) {
7264 this.children = children;
7265 var size = 0, height = 0;
7266 for (var i = 0; i < children.length; ++i) {
7267 var ch = children[i];
7268 size += ch.chunkSize(); height += ch.height;
7269 ch.parent = this;
7270 }
7271 this.size = size;
7272 this.height = height;
7273 this.parent = null;
7274 }
7275
7276 BranchChunk.prototype = {
7277 chunkSize: function() { return this.size; },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected