diff options
author | Struan Donald <struan@exo.org.uk> | 2013-03-21 17:12:21 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-03-21 17:20:30 +0000 |
commit | 35422b24595c4d8fff252a346a58f0d33eb24ab1 (patch) | |
tree | 1892757123173deccd1c49c0877e0991c2c5ab0b /www/js | |
parent | 2461f9e530b3ed004a01519698f7afe977283dee (diff) |
The first time this is called the watch id doesn't seem to be available
so if we only call this once, as is aften the case if you move to one
screen and back to aroun screen, then it never sets the posiotion of the dot
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/locate.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/www/js/locate.js b/www/js/locate.js index 3f3748f..387db6f 100644 --- a/www/js/locate.js +++ b/www/js/locate.js @@ -77,8 +77,6 @@ var that = this; this.update_watch_id = navigator.geolocation.watchPosition( function(location) { - if ( that.update_watch_id === undefined ) { console.log( 'no update watch id' ); return; } - that.trigger('gps_current_position', { coordinates: location.coords } ); }, function() {}, |