forked from github/cordova-android
Found syntax error in Geolocation. Probably been lurking here for months
This commit is contained in:
parent
db03ff397f
commit
57a41b7b2f
@ -109,7 +109,7 @@ Geolocation.prototype.watchPosition = function(successCallback, errorCallback, o
|
|||||||
this.listeners = [];
|
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.
|
// TO-DO: Get the names of the method and pass them as strings to the Java.
|
||||||
return Geolocation.start(frequency, key);
|
return Geolocation.start(frequency, key);
|
||||||
@ -147,4 +147,4 @@ PhoneGap.addConstructor(function() {
|
|||||||
["setLocation", "getCurrentPosition", "watchPosition",
|
["setLocation", "getCurrentPosition", "watchPosition",
|
||||||
"clearWatch", "setError", "start", "stop", "gotCurrentPosition"]
|
"clearWatch", "setError", "start", "stop", "gotCurrentPosition"]
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user