Skip to content

Commit

Permalink
Fix: BBTree.log()
Browse files Browse the repository at this point in the history
  • Loading branch information
robwalch committed Jan 27, 2013
1 parent d7eec37 commit 363f967
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
8 changes: 3 additions & 5 deletions cp.js
Expand Up @@ -2514,18 +2514,16 @@ BBTree.prototype.optimize = function()
var nodeRender = function(node, depth)
{
if(!node.isLeaf && depth <= 10){
nodeRender(node.a, depth + 1);
nodeRender(node.b, depth + 1);
nodeRender(node.A, depth + 1);
nodeRender(node.B, depth + 1);
}

// var bb = node.bb;

var str = '';
for(var i = 0; i < depth; i++) {
str += ' ';
}

// console.log(str + bb.b + ' ' + bb.t);
console.log(str + node.bb_b + ' ' + node.bb_t);
};

BBTree.prototype.log = function(){
Expand Down

0 comments on commit 363f967

Please sign in to comment.