In some situations, when a player clicks a card, I call ajaxcall() immediately.
If the player clicks the card too soon afterwards, this prompts an error from the server.
I would like to detect if the second click is made during an ajaxcall(), and disable it.
(I already disable the clickable elements in onLeavingState, but this is happening before that)
Is there a way to do that without hooking code into the ajaxcall() success and failure callbacks?
Is there a different way I should go about it?
If the player clicks the card too soon afterwards, this prompts an error from the server.
I would like to detect if the second click is made during an ajaxcall(), and disable it.
(I already disable the clickable elements in onLeavingState, but this is happening before that)
Is there a way to do that without hooking code into the ajaxcall() success and failure callbacks?
Is there a different way I should go about it?