From 57a41b7b2fd75679914583e7105c06bc5091a5d7 Mon Sep 17 00:00:00 2001 From: Brock Whitten Date: Mon, 15 Mar 2010 16:07:14 -0700 Subject: [PATCH] Found syntax error in Geolocation. Probably been lurking here for months --- framework/assets/js/geolocation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/assets/js/geolocation.js b/framework/assets/js/geolocation.js index df942251..7d529d37 100644 --- a/framework/assets/js/geolocation.js +++ b/framework/assets/js/geolocation.js @@ -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"] ); -}); \ No newline at end of file +});