Skip to content

Javascript issues #54

Description

@olufjen

The console log after opponent move:
ChessBoardstopDraggedPiece cfg ondrop true type function
chessboard.js:1285 ChessBoard tester d7 og true og d5 og true
chessboard.js:1292 ChessBoard brikke flyttet på brettet bP
?method=PUT:175 The onDrop function
chessboard.js:1300 Result is none bP new position [object Object] old position [object Object] orientation white
chessboard.js:1314 ChessBoard brikke på brettet bP
newPosition is result of call to deepCopy.
The deepCopy function:
return JSON.parse(JSON.stringify(thing));
See example:
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_parse_json

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions