Open Couchy opened 8 years ago
This should resolve the issue you mentioned, but there are probably more places with the same error, so I'll leave this issue open for now.
It should only complain about this kind of error when using strict mode though, which really shouldn't be enabled by default. :S
I don't know what changed, but Chrome is complaining about i being undefined here. Putting "var" before the i fixes it.
for (i = 0; i < res.snapshotLength; i++) arr.push(res.snapshotItem(i));