Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Jun 24, 2022
1 parent d2cd664 commit d0db3c2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/modules/hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ let hub_main_props = {
node = node.parent;
}

grapher.draw_graph(this.node); // In case we became the main line, in which case colours need updated.
grapher.draw_graph(this.node); // In case we became the main line, in which case colours need updated.
tree_drawer.must_draw = true;
},

Expand All @@ -568,10 +568,10 @@ let hub_main_props = {
let parent = this.node.parent;
this.node.detach();
this.set_node(parent, {bless: false});
} else { // There are good reasons why the root node can't be replaced.
} else { // There are good reasons why the root node can't be replaced.
if (this.node.children.length > 0) {
this.node.detach_children();
this.draw(); // Clear the next move markers.
this.draw(); // Clear the next move markers.
grapher.draw_graph(this.node);
tree_drawer.must_draw = true;
}
Expand All @@ -588,25 +588,25 @@ let hub_main_props = {
node = node.parent;
}

this.draw(); // I guess, because next move markers may need cleared.
this.draw(); // I guess, because next move markers may need cleared.
grapher.draw_graph(this.node);
tree_drawer.must_draw = true;
},

forget_analysis_tree: function() {
this.halt();
this.node.forget_analysis_tree();
this.node.change_id(); // Prevents the old query from updating the node.
this.node.change_id(); // Prevents the old query from updating the node.
this.draw();
},

// Engine......................................................................................

receive_object: function(o) {

if (o.action === "query_version") { // Clear the "engine is starting" message.
this.draw();
return;
if (o.action === "query_version") { // The board_drawer displays a startup message until the
this.draw(); // query_version message arrives, so we should now draw()
return; // to remove it.
}

if (!valid_analysis_object(o)) {
Expand Down

0 comments on commit d0db3c2

Please sign in to comment.