From: Benjamin Auder Date: Mon, 19 Nov 2018 01:55:57 +0000 (+0100) Subject: Fix code ordering in ChessRules.constructor X-Git-Url: https://git.auder.net/variants/img/pieces/css/css/DESCRIPTION?a=commitdiff_plain;h=ffbae57a25ae8e376959bfc91095bb6ab97230e0;p=vchess.git Fix code ordering in ChessRules.constructor --- diff --git a/public/javascripts/base_rules.js b/public/javascripts/base_rules.js index f08c272b..7f4052ac 100644 --- a/public/javascripts/base_rules.js +++ b/public/javascripts/base_rules.js @@ -51,9 +51,9 @@ class ChessRules { this.moves = moves; // Use fen string to initialize variables, flags and board - this.initVariables(fen); this.board = VariantRules.GetBoard(fen); this.flags = VariantRules.GetFlags(fen); + this.initVariables(fen); } initVariables(fen)