Fix global leaks

This commit is contained in:
Tom MacWright
2012-11-15 14:05:59 -05:00
parent 1fcb641b4b
commit f5b6508293
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -295,7 +295,7 @@ iD.Map = function(elem) {
var t = projection.translate(),
s = projection.scale(),
z = Math.max(Math.log(s) / Math.log(2) - 8, 0);
z = Math.max(Math.log(s) / Math.log(2) - 8, 0),
rz = Math.floor(z),
ts = 512 * Math.pow(2, z - rz);
+1 -1
View File
@@ -20,7 +20,7 @@ iD.Tiles = function(selection, projection, width, height) {
function redraw() {
var t = projection.translate(),
s = projection.scale(),
z = Math.max(Math.log(s) / Math.log(2) - 8, 0);
z = Math.max(Math.log(s) / Math.log(2) - 8, 0),
rz = Math.floor(z),
ts = 256 * Math.pow(2, z - rz);