Export ol.Geolocation.SUPPORTED and provide ol.Geolocation

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

View File

@@ -1,2 +1 @@
@exportClass ol.Geolocation ol.GeolocationOptions
@exportSymbol ol.Geolocation.SUPPORTED

View File

@@ -1,7 +1,6 @@
// FIXME handle geolocation not supported
goog.provide('ol.Geolocation');
goog.provide('ol.Geolocation.SUPPORTED');
goog.provide('ol.GeolocationProperty');
goog.require('goog.events');
@@ -144,6 +143,10 @@ ol.Geolocation.prototype.handleTrackingChanged_ = function() {
* @type {boolean}
*/
ol.Geolocation.SUPPORTED = 'geolocation' in goog.global.navigator;
goog.exportProperty(
ol.Geolocation,
'SUPPORTED',
ol.Geolocation.SUPPORTED);
/**