From 13c84b0523d7c682942834a6e443c088c51c7aa7 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sun, 15 Sep 2013 13:15:43 -0600 Subject: [PATCH] Export ol.Geolocation.SUPPORTED and provide ol.Geolocation --- src/ol/geolocation.exports | 1 - src/ol/geolocation.js | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ol/geolocation.exports b/src/ol/geolocation.exports index 7065040bdc..18d54d9805 100644 --- a/src/ol/geolocation.exports +++ b/src/ol/geolocation.exports @@ -1,2 +1 @@ @exportClass ol.Geolocation ol.GeolocationOptions -@exportSymbol ol.Geolocation.SUPPORTED diff --git a/src/ol/geolocation.js b/src/ol/geolocation.js index ec5f762690..d1528b70e0 100644 --- a/src/ol/geolocation.js +++ b/src/ol/geolocation.js @@ -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); /**