Merge pull request #631 from twpayne/dont-use-foreach-in-loops

Don't use forEach in loops
This commit is contained in:
Tom Payne
2013-04-20 03:02:13 -07:00
16 changed files with 107 additions and 83 deletions

View File

@@ -224,9 +224,8 @@ ol.renderer.Layer.prototype.scheduleExpireCache =
ol.renderer.Layer.prototype.updateAttributions =
function(attributionsSet, attributions) {
if (goog.isDefAndNotNull(attributions)) {
var i;
var attribution;
for (i = 0; i < attributions.length; ++i) {
var attribution, i, ii;
for (i = 0, ii = attributions.length; i < ii; ++i) {
attribution = attributions[i];
attributionsSet[goog.getUid(attribution).toString()] = attribution;
}