]> git.sesse.net Git - remoteglot/blobdiff - www/js/remoteglot.js
Fix a missing var declaration.
[remoteglot] / www / js / remoteglot.js
index 7bd7e164e426984a79ed961741aa123a72fcaaf6..128568aa465253acb4d613d1cf79eb9f6b55264e 100644 (file)
@@ -171,7 +171,7 @@ var position_arrow = function(arrow) {
                        lineWidth:0,
                        strokeStyle:arrow.fg_color,
                        outlineWidth:0,
-                       outlineColor:"#666",
+                       outlineColor:"#666"
                },
                overlays : [
                        ["Arrow", {
@@ -181,8 +181,8 @@ var position_arrow = function(arrow) {
                                length: arrow_size,
                                paintStyle: { 
                                        lineWidth:line_width,
-                                       strokeStyle:"#000",
-                               },
+                                       strokeStyle:"#000"
+                               }
                        }]
                ]
        });
@@ -324,7 +324,7 @@ var update_refutation_lines = function(board) {
        var tbl = $("#refutationlines");
        tbl.empty();
 
-       moves = [];
+       var moves = [];
        for (var move in refutation_lines) {
                moves.push(move);
        }