3 ms·
I made a similar error once working in Adobe Air (if I recall): for (x = 0; x < thing.length; x++) { } I didn't put a "var" before the x- so Air used the
by untog 14y ago
I made a similar error once working in Adobe Air (if I recall):
for (x = 0; x < thing.length; x++) { }
I didn't put a "var" before the x- so Air used the window.x object, and shifted the entire contents of the window to the right by a seemingly random number of pixels.
To look at it like that, it's blindingly obvious. But it was in the middle of a whole lot of other code, and of course, the for loop ran perfectly fine.