Mark overlayContainer and overlayContainerStopEvent as non-nullable

And remove an unnecessary cast
This commit is contained in:
Frederic Junod
2016-02-23 11:24:56 +01:00
parent 996e119b25
commit 268d6eda8f
2 changed files with 5 additions and 6 deletions

View File

@@ -280,8 +280,7 @@ ol.Overlay.prototype.handleMapChanged = function() {
var container = this.stopEvent_ ?
map.getOverlayContainerStopEvent() : map.getOverlayContainer();
if (this.insertFirst_) {
goog.dom.insertChildAt(/** @type {!Element} */ (
container), this.element_, 0);
goog.dom.insertChildAt(container, this.element_, 0);
} else {
container.appendChild(this.element_);
}