Merge pull request #4485 from fredj/overlay_dom_simplify
Use appendChild instead of goog.dom.append
This commit is contained in:
+2
-2
@@ -260,7 +260,7 @@ ol.Overlay.prototype.handleElementChanged = function() {
|
|||||||
goog.dom.removeChildren(this.element_);
|
goog.dom.removeChildren(this.element_);
|
||||||
var element = this.getElement();
|
var element = this.getElement();
|
||||||
if (element) {
|
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} */ (
|
goog.dom.insertChildAt(/** @type {!Element} */ (
|
||||||
container), this.element_, 0);
|
container), this.element_, 0);
|
||||||
} else {
|
} else {
|
||||||
goog.dom.append(/** @type {!Node} */ (container), this.element_);
|
container.appendChild(this.element_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user