Nasty click handlers in a loop

I hope that was the problem. When binding async handlers in a loop, you have to wrap them in a closure to preserve the context.