Browse files

CB-5840 Update Location test to fix the info field is alway displayin…

…g "Retrieving location..."

If we click "Get Location Up to 30 Seconds Old" twice within 30 secs,
since the second time the success callback will be invoked immediately,
the location status will be set as “Done” first and then be set as
“Retrieving location…”, that’s why it’s always displaying  "Retrieving
  • Loading branch information...
1 parent c33d6c6 commit 9d9b517f34bc5862e56ca737c93ebad3e1fd17cf @lmnbeyond lmnbeyond committed with agrieve Jan 23, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 location/index.html
3 location/index.html
@@ -109,9 +109,10 @@
setLocationStatus("Error: "+e.code);
+ setLocationStatus("Retrieving location...");
// Get location
geo.getCurrentPosition(success, fail, opts || {enableHighAccuracy: true}); //, {timeout: 10000});
- setLocationStatus("Retrieving location...");

0 comments on commit 9d9b517

Please sign in to comment.