removes opt_this from ol.Collection#forEach

this commit also removes all uses of the standard thisArg of
Array#forEach.
This commit is contained in:
simonseyock
2017-12-16 13:43:46 +01:00
parent 1aa7313a7b
commit 3e82c37bed
13 changed files with 28 additions and 36 deletions
+2 -2
View File
@@ -222,7 +222,7 @@ _ol_reproj_Tile_.prototype.reproject_ = function() {
image: tile.getImage()
});
}
}, this);
}.bind(this));
this.sourceTiles_.length = 0;
if (sources.length === 0) {
@@ -281,7 +281,7 @@ _ol_reproj_Tile_.prototype.load = function() {
}, this);
this.sourcesListenerKeys_.push(sourceListenKey);
}
}, this);
}.bind(this));
this.sourceTiles_.forEach(function(tile, i, arr) {
var state = tile.getState();
+1 -1
View File
@@ -172,7 +172,7 @@ var _ol_reproj_Triangulation_ = function(sourceProj, targetProj, targetExtent,
triangle.source = newTriangle;
}
}
}, this);
}.bind(this));
}
transformInvCache = {};