cm-chessboard 7.4.3 → 7.4.4

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": "7.4.3",
3
+ "version": "7.4.4",
4
4
  "description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
5
5
  "keywords": [
6
6
  "chess",
@@ -302,6 +302,9 @@ export class ChessboardView {
302
302
  // enable and disable move input //
303
303
 
304
304
  enableMoveInput(eventHandler, color = undefined) {
305
+ if(this.moveInputCallback) {
306
+ throw Error("moveInput already enabled")
307
+ }
305
308
  if (color === COLOR.white) {
306
309
  this.chessboard.state.inputWhiteEnabled = true
307
310
  } else if (color === COLOR.black) {