Better variables scoping

This commit is contained in:
Frederic Junod
2018-01-17 09:05:39 +01:00
parent ee348c50e9
commit 4c5ca75ca6
21 changed files with 93 additions and 147 deletions

View File

@@ -71,8 +71,7 @@ const Zoomify = function(opt_options) {
const resolutions = [1];
const tileCountUpToTier = [0];
let i, ii;
for (i = 1, ii = tierSizeInTiles.length; i < ii; i++) {
for (let i = 1, ii = tierSizeInTiles.length; i < ii; i++) {
resolutions.push(1 << i);
tileCountUpToTier.push(
tierSizeInTiles[i - 1][0] * tierSizeInTiles[i - 1][1] +