CB-9105: Fixing JS errors in the shim
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/commit/cab6f22d Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/tree/cab6f22d Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/diff/cab6f22d Branch: refs/heads/master Commit: cab6f22d5b20fbb3a68a1f4775d1d0873b82dd61 Parents: e713e7a Author: Joe Bowser <[email protected]> Authored: Tue Sep 22 16:03:28 2015 -0700 Committer: Joe Bowser <[email protected]> Committed: Wed Oct 28 12:00:26 2015 -0700 ---------------------------------------------------------------------- www/android/geolocation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/blob/cab6f22d/www/android/geolocation.js ---------------------------------------------------------------------- diff --git a/www/android/geolocation.js b/www/android/geolocation.js index 7aa36f4..82e3582 100644 --- a/www/android/geolocation.js +++ b/www/android/geolocation.js @@ -37,10 +37,10 @@ module.exports = { exec(win, error, "Geolocation", "getPermission", []); }, - addWatch: function(success, error, args) { + watchPosition: function(success, error, args) { var win = function() { var geo = cordova.require('cordova/modulemapper').getOriginalSymbol(window, 'navigator.geolocation'); - geo.watchPosition(successCallback, error, { + geo.watchPosition(success, error, { enableHighAccuracy: args[1] }); }; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
