Use appendChild instead of goog.dom.append

This commit is contained in:
Frederic Junod
2015-11-24 13:45:54 +01:00
parent 90e224bd96
commit a9cd2cd278

View File

@@ -260,7 +260,7 @@ ol.Overlay.prototype.handleElementChanged = function() {
goog.dom.removeChildren(this.element_);
var element = this.getElement();
if (element) {
goog.dom.append(/** @type {!Node} */ (this.element_), element);
this.element_.appendChild(element);
}
};
@@ -285,7 +285,7 @@ ol.Overlay.prototype.handleMapChanged = function() {
goog.dom.insertChildAt(/** @type {!Element} */ (
container), this.element_, 0);
} else {
goog.dom.append(/** @type {!Node} */ (container), this.element_);
container.appendChild(this.element_);
}
}
};