Re: aborting getCurrentPosition()?

Hi Andrei, sorry for the late response.

Andrei Popescu <andreip@google.com> writes:

> Yes, I see. I don't have much against it, even though I'd prefer the
> API to stay as simple as possible. Would you be ok with discussing the
> cancel() function in the scope of the v2 of the Geolocation API?

Yes, that's no problem with me. I don't care that much about the proposal, to be honest, and if no one else but me supports it I won't fight for it.

> Anyway, if we go down this route, my proposal would be to make
> getCurrentPosition() return an identifier (just like watchPosition())
> and rename clearWatch() to 'clearRequest' (or similar) so that it can
> clear either type of request.

Agreed. Keeps the API simple.

Max.

Received on Wednesday, 13 May 2009 12:29:26 UTC