Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: BBTree.log()

  • Loading branch information...
commit 363f9671a2090ae625122c51c31b275a516604e4 1 parent d7eec37
@robwalch robwalch authored
Showing with 8 additions and 12 deletions.
  1. +3 −5 cp.js
  2. +2 −2 cp.min.js
  3. +3 −5 lib/cpBBTree.js
View
8 cp.js
@@ -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(){
View
4 cp.min.js
2 additions, 2 deletions not shown
View
8 lib/cpBBTree.js
@@ -759,18 +759,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(){
Please sign in to comment.
Something went wrong with that request. Please try again.