Hi fellow devs,
I'm wondering if there is a more ellegant way to update a counter with some delay after a slideTemporaryObject.
In my project I move some tokens from one location to other and then updating a counter on the board (similar to the Tokaido animation when getting coins). The problem is that the counter on the board is updated much before the first item arrives to it and does not seem to be consistent.
I'm thinking about adding a setTimeout on the update of the innerhtml of the counter or some other "sleep" but I'm wondering if there is a better way to do it with dojo or similar.
I'm wondering if there is a more ellegant way to update a counter with some delay after a slideTemporaryObject.
In my project I move some tokens from one location to other and then updating a counter on the board (similar to the Tokaido animation when getting coins). The problem is that the counter on the board is updated much before the first item arrives to it and does not seem to be consistent.
I'm thinking about adding a setTimeout on the update of the innerhtml of the counter or some other "sleep" but I'm wondering if there is a better way to do it with dojo or similar.