Merge pull request #4485 from fredj/overlay_dom_simplify
Use appendChild instead of goog.dom.append
This commit is contained in:
@@ -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_);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user