So I want Box element to:
A) fade out
B) then, while it's faded out, change the name in box element
C) then fade back in
My problem is the callback does not wait for it's turn inside the event queue, but updates to the last name, that is "new 4" before the first fadeout/in iteration.
I'm using extjs.com, and fadeIn() and fadeOut() are located under FX.
<div id="box">Name 1</div>
Ext.get('box').update('new ' + i);
Any help appreciated.