(children)
| 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; }, |
nothing calls this directly
no outgoing calls
no test coverage detected