Map target may be undefined
This commit is contained in:
@@ -78,7 +78,7 @@ ol.control.FullScreen.prototype.handleClick_ = function(browserEvent) {
|
|||||||
goog.dom.fullscreen.exitFullScreen();
|
goog.dom.fullscreen.exitFullScreen();
|
||||||
} else {
|
} else {
|
||||||
var element = map.getTarget();
|
var element = map.getTarget();
|
||||||
goog.asserts.assert(!goog.isNull(element));
|
goog.asserts.assert(goog.isDefAndNotNull(element));
|
||||||
if (this.keys_) {
|
if (this.keys_) {
|
||||||
goog.dom.fullscreen.requestFullScreenWithKeys(element);
|
goog.dom.fullscreen.requestFullScreenWithKeys(element);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user