Merge pull request #1017 from tschaub/provide-objects-only

Never use goog.provide with primitives (especially with falsely values).
This commit is contained in:
Tim Schaub
2013-09-16 06:46:26 -07:00
17 changed files with 22 additions and 21 deletions

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');
@@ -143,6 +142,10 @@ ol.Geolocation.prototype.handleTrackingChanged_ = function() {
* @type {boolean}
*/
ol.Geolocation.SUPPORTED = 'geolocation' in goog.global.navigator;
goog.exportProperty(
ol.Geolocation,
'SUPPORTED',
ol.Geolocation.SUPPORTED);
/**