Bug: Card event bindings in Undo
quandyfactory opened this issue · 0 comments
quandyfactory commented
When you undo and the deck gets reverted to a previous state, the _sol.deck items revert and their representations on the board revert, but their associated event handlers (drag, click, dblclick) do not rever.
The undo() function will need to unbind() and then reattach the appropriate event handlers, given each card's position and face orientation. This may require a bit more abstraction of the functionality to attach event handlers.