Geolocation works on Android

This commit is contained in:
unknown 2009-03-31 09:30:15 -07:00
parent beb8dac747
commit a4bb2a276e

View File

@ -546,15 +546,17 @@ Geolocation.prototype.getCurrentPosition = function(successCallback, errorCallba
}
// Run the global callback
Geolocation.gotCurrentPosition = function(latitude, longitude)
Geolocation.gotCurrentPosition = function(lat, lng)
{
if (latitude == "undefined" || longitude == "undefined")
if (lat == "undefined" || lng == "undefined")
{
this.fail();
}
else
{
p = { lat: latitude, lng: longitude }
p = {};
p.latitude = lat;
p.longitude = lng;
this.global_success(p);
}
}