Found syntax error in Geolocation. Probably been lurking here for months

This commit is contained in:
Brock Whitten 2010-03-15 16:07:14 -07:00
parent db03ff397f
commit 57a41b7b2f

View File

@ -109,7 +109,7 @@ Geolocation.prototype.watchPosition = function(successCallback, errorCallback, o
this.listeners = [];
}
var key = this.listeners.push( {"success" : successCallback, "fail" : failCallback }) - 1;
var key = this.listeners.push( {"success" : successCallback, "fail" : errorCallback }) - 1;
// TO-DO: Get the names of the method and pass them as strings to the Java.
return Geolocation.start(frequency, key);
@ -147,4 +147,4 @@ PhoneGap.addConstructor(function() {
["setLocation", "getCurrentPosition", "watchPosition",
"clearWatch", "setError", "start", "stop", "gotCurrentPosition"]
);
});
});