]> git.sesse.net Git - remoteglot/blobdiff - www/js/remoteglot.js
Fix another jQuery-ism.
[remoteglot] / www / js / remoteglot.js
index 687b48426b20b9fc0f557a984ffe1dbede583e83..183d372f49dc5935d7a9aa42a7a90571cf3f410a 100644 (file)
@@ -104,7 +104,7 @@ var highlight_from = undefined;
 var highlight_to = undefined;
 
 /** The HTML object of the move currently being highlighted (in red).
- * @type {?jQuery}
+ * @type {?Element}
  * @private */
 var highlighted_move = null;
 
@@ -809,9 +809,9 @@ var update_history = function() {
        } 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);
        }
 }
 
@@ -1676,7 +1676,7 @@ var show_line = function(line_num, move_num) {
                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);