In the process of toying with some jQuery animations, I've managed to get myself into a bit of a bind (where I can't use .unbind()
).
I have a set of "inactive" blocks in div#tray
that I would like to be able to swap with the "active" block in div#main
by clicking on them. Animating the blocks out always happens immediately when I click them, but the more swaps I make, the longer it takes to get to the swap-and-animate-in function. Eventually it falls apart as steps apparently get skipped.
I don't understand why this is (some sort of timing problem?), so I've written a jsFiddle with my code, and would appreciate any insight.