W3C home > Mailing lists > Public > public-geolocation@w3.org > October 2008

Re: geolocation.clearWatchAll()

From: Andrei Popescu <andreip@google.com>
Date: Fri, 3 Oct 2008 18:59:19 +0100
Message-ID: <708552fb0810031059k35150013h6096172557a5c362@mail.gmail.com>
To: "Aaron Boodman" <aa@google.com>
Cc: "Doug Turner" <doug.turner@gmail.com>, public-geolocation <public-geolocation@w3.org>

On Fri, Oct 3, 2008 at 6:46 PM, Aaron Boodman <aa@google.com> wrote:
> On Fri, Oct 3, 2008 at 10:38 AM, Doug Turner <doug.turner@gmail.com> wrote:
>> clearWatchAll() should be scoped by the js context it is called in.
>
> By js context, do you mean DOM window?
>
> Let's say you use the prototype JS library, and it has functionality
> that uses the Geolocation API. Let's also say that you write some of
> your own code to use Geolocation. Now if you or Prototype use this
> clearAllWatches(), you can break each other.
>

I think this is a good point. The library code runs in the same
execution context as the client code that uses it. clearAll() would
affect all watches set by either the library or the client application
code.

Andrei
Received on Friday, 3 October 2008 18:00:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 18:13:30 GMT