Merge pull request #4202 from fredj/rm_appendChild

Remove use of goog.dom.appendChild
This commit is contained in:
Frédéric Junod
2015-10-01 14:49:15 +02:00
6 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ ol.renderer.dom.ImageLayer.prototype.prepareFrame =
imageElement.style.maxWidth = 'none';
imageElement.style.position = 'absolute';
goog.dom.removeChildren(this.target);
goog.dom.appendChild(this.target, imageElement);
this.target.appendChild(imageElement);
this.image_ = image;
}
this.setTransform_(transform);
+3 -3
View File
@@ -364,7 +364,7 @@ ol.renderer.dom.TileLayerZ_.prototype.addTile = function(tile, tileGutter) {
imageStyle.top = -tileGutter + 'px';
imageStyle.width = (tileSize[0] + 2 * tileGutter) + 'px';
imageStyle.height = (tileSize[1] + 2 * tileGutter) + 'px';
goog.dom.appendChild(tileElement, image);
tileElement.appendChild(image);
} else {
imageStyle.width = tileSize[0] + 'px';
imageStyle.height = tileSize[1] + 'px';
@@ -379,7 +379,7 @@ ol.renderer.dom.TileLayerZ_.prototype.addTile = function(tile, tileGutter) {
if (!this.documentFragment_) {
this.documentFragment_ = document.createDocumentFragment();
}
goog.dom.appendChild(this.documentFragment_, tileElement);
this.documentFragment_.appendChild(tileElement);
this.tiles_[tileCoordKey] = tile;
};
@@ -389,7 +389,7 @@ ol.renderer.dom.TileLayerZ_.prototype.addTile = function(tile, tileGutter) {
*/
ol.renderer.dom.TileLayerZ_.prototype.finalizeAddTiles = function() {
if (this.documentFragment_) {
goog.dom.appendChild(this.target, this.documentFragment_);
this.target.appendChild(this.documentFragment_);
this.documentFragment_ = null;
}
};