aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-03-21 15:12:06 +0000
committerStruan Donald <struan@exo.org.uk>2013-03-21 17:19:50 +0000
commit0c8704176ecb581aa49c5f78c043af1736983847 (patch)
tree6ff932edba83d8f37eff4d63127efe872442affc /www/js
parente0fc5129a1cfe50d57a14d95bd0f56964d9f9f8c (diff)
clear the correct watch
Diffstat (limited to 'www/js')
-rw-r--r--www/js/locate.js2
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;
}
},