Remove opt_ prefix
This commit is contained in:
+7
-7
@@ -13,15 +13,15 @@
|
||||
* @param {number} z Z.
|
||||
* @param {number} x X.
|
||||
* @param {number} y Y.
|
||||
* @param {TileCoord} [opt_tileCoord] Tile coordinate.
|
||||
* @param {TileCoord} [tileCoord] Tile coordinate.
|
||||
* @return {TileCoord} Tile coordinate.
|
||||
*/
|
||||
export function createOrUpdate(z, x, y, opt_tileCoord) {
|
||||
if (opt_tileCoord !== undefined) {
|
||||
opt_tileCoord[0] = z;
|
||||
opt_tileCoord[1] = x;
|
||||
opt_tileCoord[2] = y;
|
||||
return opt_tileCoord;
|
||||
export function createOrUpdate(z, x, y, tileCoord) {
|
||||
if (tileCoord !== undefined) {
|
||||
tileCoord[0] = z;
|
||||
tileCoord[1] = x;
|
||||
tileCoord[2] = y;
|
||||
return tileCoord;
|
||||
} else {
|
||||
return [z, x, y];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user