Export ol.DeviceOrientation.SUPPORTED and provide ol.DeviceOrientation

This commit is contained in:
Tim Schaub
2013-09-15 13:15:17 -06:00
parent 210b489a6c
commit 589c6f8a0b
2 changed files with 4 additions and 2 deletions

View File

@@ -1,2 +1 @@
@exportClass ol.DeviceOrientation ol.DeviceOrientationOptions
@exportSymbol ol.DeviceOrientation.SUPPORTED

View File

@@ -1,5 +1,4 @@
goog.provide('ol.DeviceOrientation');
goog.provide('ol.DeviceOrientation.SUPPORTED');
goog.provide('ol.DeviceOrientationProperty');
goog.require('goog.events');
@@ -107,6 +106,10 @@ ol.DeviceOrientation.prototype.disposeInternal = function() {
* @type {boolean}
*/
ol.DeviceOrientation.SUPPORTED = 'DeviceOrientationEvent' in window;
goog.exportProperty(
ol.DeviceOrientation,
'SUPPORTED',
ol.DeviceOrientation.SUPPORTED);
/**