I don't know how to word this problem exactly but I found this extremely wired.
Basically I did this test in chrome's developer tool console.
for (var request in [0,1,2]) { console.log(request);}
0
1
2
compare
the last four lines are all outputs from the for loop. during the for loop, request got the value compare.
I wonder if this is a bug in chrome.
for..inis not meant for arrays, use regularforloop:var arr = [1,2,3]; for (var i=0; i<arr.length; i++).for .. inis only for objects.