3 ms·
Wrap the line of code inside the loop inside another function, which will have the effect of binding the iterator i to the desired value before the event handle
by robterrell 16y ago
Wrap the line of code inside the loop inside another function, which will have the effect of binding the iterator i to the desired value before the event handler anonymous function is created.