Revert "Add ol.BrowserFeature.HAS_FULLSCREEN constant"
This reverts commit 5a940c207a.
Detection of full screeen support requires the document to have a body.
This is not the case if ol3 is loaded in the head. Therefore, defer the
test for full screen support to when it is needed.
This commit is contained in:
@@ -3,7 +3,6 @@ goog.provide('ol.BrowserFeature');
|
||||
goog.require('goog.dom');
|
||||
goog.require('goog.dom.TagName');
|
||||
goog.require('goog.userAgent');
|
||||
goog.require('googx.dom.fullscreen');
|
||||
goog.require('ol.webgl');
|
||||
|
||||
|
||||
@@ -142,15 +141,6 @@ ol.BrowserFeature.HAS_DEVICE_ORIENTATION =
|
||||
ol.BrowserFeature.HAS_DOM = ol.ENABLE_DOM;
|
||||
|
||||
|
||||
/**
|
||||
* True if browser supports the fullscreen API.
|
||||
* @const
|
||||
* @type {boolean}
|
||||
* @todo stability experimental
|
||||
*/
|
||||
ol.BrowserFeature.HAS_FULLSCREEN = googx.dom.fullscreen.isSupported();
|
||||
|
||||
|
||||
/**
|
||||
* Is HTML5 geolocation supported in the current browser?
|
||||
* @const
|
||||
|
||||
Reference in New Issue
Block a user