mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 01:53:00 +08:00
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user