diff options
author | Struan Donald <struan@exo.org.uk> | 2013-03-21 15:12:06 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-03-21 17:19:50 +0000 |
commit | 0c8704176ecb581aa49c5f78c043af1736983847 (patch) | |
tree | 6ff932edba83d8f37eff4d63127efe872442affc /www/js | |
parent | e0fc5129a1cfe50d57a14d95bd0f56964d9f9f8c (diff) |
clear the correct watch
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/locate.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/locate.js b/www/js/locate.js index 3912a32..3f3748f 100644 --- a/www/js/locate.js +++ b/www/js/locate.js @@ -89,7 +89,7 @@ stopUpdating: function() { this.updating = 0; if ( this.update_watch_id ) { - navigator.geolocation.clearWatch( this.watch_id ); + navigator.geolocation.clearWatch( this.update_watch_id ); delete this.update_watch_id; } }, |