From c117fbbf7c394d5c4070af1c161be91118919264 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 19 Feb 2013 12:28:44 +0100 Subject: [PATCH] Rename ol.Geolocation.isSupported to ol.Geolocation.SUPPORTED. And add the 'const' JSDoc Tags. --- src/ol/geolocation.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ol/geolocation.js b/src/ol/geolocation.js index 99a0535382..30bc68304f 100644 --- a/src/ol/geolocation.js +++ b/src/ol/geolocation.js @@ -42,7 +42,7 @@ ol.Geolocation = function(opt_positionOptions) { */ this.position_ = null; - if (ol.Geolocation.isSupported) { + if (ol.Geolocation.SUPPORTED) { goog.events.listen( this, ol.Object.getChangedEventType(ol.GeolocationProperty.PROJECTION), this.handleProjectionChanged_, false, this); @@ -86,9 +86,10 @@ ol.Geolocation.prototype.handleProjectionChanged_ = function() { /** + * @const * @type {boolean} Is supported. */ -ol.Geolocation.isSupported = 'geolocation' in navigator; +ol.Geolocation.SUPPORTED = 'geolocation' in navigator; /**