MCPcopy Create free account
hub / github.com/microsoft/SandDance / leaf_copy

Function leaf_copy

docs/app/js/sanddance-app.js:135874–135882  ·  view source on GitHub ↗
(leaf)

Source from the content-addressed store, hash-verified

135872 this._root = undefined;
135873}
135874function leaf_copy(leaf) {
135875 var copy = {
135876 data: leaf.data
135877 }, next = copy;
135878 while(leaf = leaf.next)next = next.next = {
135879 data: leaf.data
135880 };
135881 return copy;
135882}
135883var treeProto = quadtree.prototype = Quadtree.prototype;
135884treeProto.copy = function() {
135885 var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1), node = this._root, nodes, child;

Callers 1

sanddance-app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected