removed duplicate definition of Drawer.prototype._compareTiles

This commit is contained in:
thatcher 2012-01-11 18:25:35 -05:00
parent 0041e32cbb
commit c8b4197f79
2 changed files with 2 additions and 32 deletions

View File

@ -3438,7 +3438,7 @@ $.Drawer = function(source, viewport, elmt) {
this.canvas.style.width = "100%";
this.canvas.style.height = "100%";
this.canvas.style.position = "absolute";
// explicit left-align
this.container.style.textAlign = "left";
this.container.appendChild(this.canvas);
@ -3446,21 +3446,6 @@ $.Drawer = function(source, viewport, elmt) {
$.Drawer.prototype = {
_compareTiles: function(prevBest, tile) {
if (!prevBest) {
return tile;
}
if (tile.visibility > prevBest.visibility) {
return tile;
} else if (tile.visibility == prevBest.visibility) {
if (tile.distance < prevBest.distance) {
return tile;
}
}
return prevBest;
},
_getNumTiles: function(level) {
if (!this.cacheNumTiles[level]) {
this.cacheNumTiles[level] = this.source.getNumTiles(level);

View File

@ -66,7 +66,7 @@ $.Drawer = function(source, viewport, elmt) {
this.canvas.style.width = "100%";
this.canvas.style.height = "100%";
this.canvas.style.position = "absolute";
// explicit left-align
this.container.style.textAlign = "left";
this.container.appendChild(this.canvas);
@ -74,21 +74,6 @@ $.Drawer = function(source, viewport, elmt) {
$.Drawer.prototype = {
_compareTiles: function(prevBest, tile) {
if (!prevBest) {
return tile;
}
if (tile.visibility > prevBest.visibility) {
return tile;
} else if (tile.visibility == prevBest.visibility) {
if (tile.distance < prevBest.distance) {
return tile;
}
}
return prevBest;
},
_getNumTiles: function(level) {
if (!this.cacheNumTiles[level]) {
this.cacheNumTiles[level] = this.source.getNumTiles(level);