From a87944ae9bedc34049b01e584b0a8ab7fccdc767 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 20 Mar 2016 11:35:13 +0100 Subject: [PATCH] Yet more small docstring updates. --- www/js/remoteglot.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 92ad761..0cca9fa 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -655,11 +655,16 @@ var collapse_history = function(truncate_history) { } window['collapse_history'] = collapse_history; +/** Update the HTML display of multi-PV from the global "refutation_lines". + * + * Also recreates the global "display_lines". + */ var update_refutation_lines = function() { if (fen === null) { return; } if (display_lines.length > 2) { + // Truncate so that only the history and PV is left. display_lines = [ display_lines[0], display_lines[1] ]; } @@ -716,6 +721,9 @@ var update_refutation_lines = function() { } /** + * Create a Chess.js board object, containing the given position plus the given moves, + * up to the given limit. + * * @param {?string} fen * @param {Array.} moves * @param {number} last_move -- 2.39.2