aborting getCurrentPosition()?

Hi,

Was the possibility of aborting an asynchronous operation ever considered?
Either through abort(), a la XMLHttpRequest:

var asyncOperation =  navigator.geolocation.getCurrentPosition(successCallback,  errorCallback, {maximumAge:600000});
// Waiting for success or callback, GPS Fix is taking time, user gets bored

button.onevent=function() {
  alert("fix cancelled");
  asyncOperation.abort();
}

or through a new error type:

navigator.geolocation.getCurrentPosition(successCallback,  errorCallback, {maximumAge:600000});
function errorCallback(error) {
  if (error.code == ABORT) {
    alert("fix cancelled");
 }
}

Max.

Received on Wednesday, 6 May 2009 07:49:29 UTC