Merge pull request #1017 from tschaub/provide-objects-only
Never use goog.provide with primitives (especially with falsely values).
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user