var highlight_to = undefined;
/** The HTML object of the move currently being highlighted (in red).
- * @type {?jQuery}
+ * @type {?Element}
* @private */
var highlighted_move = null;
} else if (truncate_display_history) {
document.getElementById("history").innerHTML = print_pv(0, null, 8, true);
} else {
- document.getElementById("history").html(
+ document.getElementById("history").innerHTML =
'(<a class="move" href="javascript:collapse_history(true)">collapse</a>) ' +
- print_pv(0, null));
+ print_pv(0, null);
}
}
update_board();
return;
} else {
- current_display_line = jQuery.extend({}, display_lines[line_num]); // Shallow clone.
+ current_display_line = {...display_lines[line_num]}; // Shallow clone.
current_display_move = move_num + current_display_line.start_display_move_num;
}
current_display_line_is_history = (line_num == 0);