]> git.sesse.net Git - remoteglot/commitdiff
Get rid of some more unneeded jQuery.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 22 Dec 2022 22:33:01 +0000 (23:33 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 22 Dec 2022 22:33:01 +0000 (23:33 +0100)
build.sh
www/js/remoteglot.js

index cab6aaaad78edcb91672296ba2ffcad24c0a2727..848714a417241a33e01d9248e212079ce04d6ed6 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -11,7 +11,7 @@
 umask 022
 
 java -jar closure-compiler-v20221004.jar \
-       --language_in ECMASCRIPT_2015 \
+       --language_in ECMASCRIPT_2018 \
        --compilation_level SIMPLE \
        --js_output_file=www/js/remoteglot.min.js \
         www/js/jquery-deprecated-sizzle.js \
index 687b48426b20b9fc0f557a984ffe1dbede583e83..2d74a3953483c85497e75265a81b14d556e69161 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;
 
@@ -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);