- if (!navigate) {
- if (!this.inMultimove) {
- if (this.cursor < this.moves.length - 1)
- this.moves = this.moves.slice(0, this.cursor + 1);
- this.moves.push(smove);
- this.inMultimove = true; //potentially
- this.cursor++;
- } else {
- // Already in the middle of a multi-move
- const L = this.moves.length;
- if (!Array.isArray(this.moves[L-1]))
- this.$set(this.moves, L-1, [this.moves[L-1], smove]);
- else
- this.$set(this.moves, L-1, this.moves.concat([smove]));
- }
+ if (!this.inMultimove) {
+ if (this.cursor < this.moves.length - 1)
+ this.moves = this.moves.slice(0, this.cursor + 1);
+ this.moves.push(smove);
+ this.inMultimove = true; //potentially
+ this.cursor++;
+ } else {
+ // Already in the middle of a multi-move
+ const L = this.moves.length;
+ if (!Array.isArray(this.moves[L-1]))
+ this.$set(this.moves, L-1, [this.moves[L-1], smove]);
+ else
+ this.$set(this.moves, L-1, this.moves.concat([smove]));