openlayers/ol3 — pull request #1370 by ahocevar (2013-12-12 17:23:13+00:00)
Title: Unnest loops

Reusing the same iterator variable in a nested loop is a bug. In this case it is better to not have nested loops at all, because we only have to create one array.