Github user sarangan12 commented on the pull request:

    
https://github.com/apache/cordova-plugin-geolocation/pull/70#issuecomment-183441405
  
    @dblotsky 'ensureLocator' need not necessarily mean than the 'loc' has to 
be singleton. It can simply mean that the "Geolocation access has been allowed 
by the user" (Refer one of the error scenarios in ensureLocator function). 
    
    But, I do agree it would be great if we could reuse the value. 
Unfortunately, there is no clean solution in this case. You can either create a 
new object or remove the existing listeners and use the old object. I think 
removing the existing listeners is not a good option (since an application can 
start watching at two different places and want to keep both event listeners 
alive). 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to