From ae1ee192f3114c9c664731743cb8f36c742fbd96 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Sun, 5 Jan 2020 12:09:07 +0100 Subject: [PATCH] Avoid misleading bind argument --- src/ol/VectorRenderTile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/VectorRenderTile.js b/src/ol/VectorRenderTile.js index 0384fc3566..bb2bd38f5d 100644 --- a/src/ol/VectorRenderTile.js +++ b/src/ol/VectorRenderTile.js @@ -26,7 +26,7 @@ class VectorRenderTile extends Tile { * @param {import("./TileState.js").default} state State. * @param {import("./tilecoord.js").TileCoord} urlTileCoord Wrapped tile coordinate for source urls. * @param {function(VectorRenderTile):Array} getSourceTiles Function - * to get an source tiles for this tile. + * to get source tiles for this tile. */ constructor(tileCoord, state, urlTileCoord, getSourceTiles) { @@ -75,7 +75,7 @@ class VectorRenderTile extends Tile { /** * @type {!function():Array} */ - this.getSourceTiles = getSourceTiles.bind(this, this); + this.getSourceTiles = getSourceTiles.bind(undefined, this); /** * z of the source tiles of the last getSourceTiles call.