Map target may be undefined

This commit is contained in:
Éric Lemoine
2013-04-23 10:07:43 +02:00
parent 7547b50bd8
commit 2dfe36b588

View File

@@ -78,7 +78,7 @@ ol.control.FullScreen.prototype.handleClick_ = function(browserEvent) {
goog.dom.fullscreen.exitFullScreen();
} else {
var element = map.getTarget();
goog.asserts.assert(!goog.isNull(element));
goog.asserts.assert(goog.isDefAndNotNull(element));
if (this.keys_) {
goog.dom.fullscreen.requestFullScreenWithKeys(element);
} else {