Use goog.dom functions

This commit is contained in:
Tom Payne
2012-08-03 11:13:01 +02:00
parent c75ce23c5a
commit d03586d8e9
4 changed files with 8 additions and 7 deletions

View File

@@ -101,7 +101,7 @@ ol.dom.TileLayerRenderer.prototype.render = function() {
}, this);
if (newTiles) {
this.target.appendChild(fragment);
goog.dom.appendChild(this.target, fragment);
}
this.removeInvisibleTiles_(tileBounds, z);
@@ -147,7 +147,7 @@ ol.dom.TileLayerRenderer.prototype.removeInvisibleTiles_ = function(
if (prune) {
tile = this.renderedTiles_[key];
delete this.renderedTiles_[key];
this.target.removeChild(tile.getImage(this));
goog.dom.removeNode(tile.getImage(this));
}
}
};