cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sarangan12 <...@git.apache.org>
Subject [GitHub] cordova-plugin-geolocation pull request: CB-10574: MobileSpec can'...
Date Fri, 12 Feb 2016 18:29:17 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


Mime
View raw message