Export ol.DeviceOrientation.SUPPORTED and provide ol.DeviceOrientation
This commit is contained in:
@@ -1,2 +1 @@
|
|||||||
@exportClass ol.DeviceOrientation ol.DeviceOrientationOptions
|
@exportClass ol.DeviceOrientation ol.DeviceOrientationOptions
|
||||||
@exportSymbol ol.DeviceOrientation.SUPPORTED
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
goog.provide('ol.DeviceOrientation');
|
goog.provide('ol.DeviceOrientation');
|
||||||
goog.provide('ol.DeviceOrientation.SUPPORTED');
|
|
||||||
goog.provide('ol.DeviceOrientationProperty');
|
goog.provide('ol.DeviceOrientationProperty');
|
||||||
|
|
||||||
goog.require('goog.events');
|
goog.require('goog.events');
|
||||||
@@ -107,6 +106,10 @@ ol.DeviceOrientation.prototype.disposeInternal = function() {
|
|||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
*/
|
*/
|
||||||
ol.DeviceOrientation.SUPPORTED = 'DeviceOrientationEvent' in window;
|
ol.DeviceOrientation.SUPPORTED = 'DeviceOrientationEvent' in window;
|
||||||
|
goog.exportProperty(
|
||||||
|
ol.DeviceOrientation,
|
||||||
|
'SUPPORTED',
|
||||||
|
ol.DeviceOrientation.SUPPORTED);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user