mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-14 06:16:46 +01:00
Removed redundant declaration.
This commit is contained in:
parent
164f6f275c
commit
5e33afd361
@ -183,27 +183,6 @@ var DynmapTileLayer = L.TileLayer.extend({
|
||||
next.loadSrc();
|
||||
},
|
||||
|
||||
_removeOtherTiles: function(bounds) {
|
||||
var kArr, x, y, key;
|
||||
|
||||
for (key in this._tiles) {
|
||||
if (this._tiles.hasOwnProperty(key)) {
|
||||
kArr = key.split(':');
|
||||
x = parseInt(kArr[0], 10);
|
||||
y = parseInt(kArr[1], 10);
|
||||
|
||||
// remove tile if it's out of bounds
|
||||
if (x < bounds.min.x || x > bounds.max.x || y < bounds.min.y || y > bounds.max.y) {
|
||||
var tile = this._tiles[key];
|
||||
if (tile.parentNode === this._container) {
|
||||
this._container.removeChild(this._tiles[key]);
|
||||
}
|
||||
delete this._namedTiles[tile.tileName];
|
||||
delete this._tiles[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
_removeOtherTiles: function(bounds) {
|
||||
var kArr, x, y, key, tile;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user