cm-chessboard 3.16.1 → 3.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-chessboard",
3
- "version": "3.16.1",
3
+ "version": "3.16.2",
4
4
  "description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
5
5
  "keywords": [
6
6
  "chess",
@@ -122,7 +122,7 @@ export class Chessboard {
122
122
  reject("no piece on square " + squareFrom)
123
123
  return
124
124
  }
125
- this.state.squares[this.state.squareToIndex(squareFrom)] = undefined
125
+ this.state.squares[this.state.squareToIndex(squareFrom)] = null
126
126
  this.state.squares[this.state.squareToIndex(squareTo)] = pieceFrom
127
127
  if (animated) {
128
128
  this.view.animatePieces(prevSquares, this.state.squares, () => {