You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sg...@apache.org on 2016/01/04 09:05:15 UTC

[3/4] cordova-plugin-geolocation git commit: CB-10204 Fix getCurrentPosition options on Android

CB-10204 Fix getCurrentPosition options on Android

github close #60


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/8cf37567
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/tree/8cf37567
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/diff/8cf37567

Branch: refs/heads/master
Commit: 8cf37567c4c144303c59128664db71abe196bc23
Parents: fe05459
Author: sgrebnov <v-...@microsoft.com>
Authored: Mon Dec 28 22:18:29 2015 +0300
Committer: sgrebnov <v-...@microsoft.com>
Committed: Mon Jan 4 11:04:14 2016 +0300

----------------------------------------------------------------------
 www/android/geolocation.js | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/blob/8cf37567/www/android/geolocation.js
----------------------------------------------------------------------
diff --git a/www/android/geolocation.js b/www/android/geolocation.js
index 82e3582..df08071 100644
--- a/www/android/geolocation.js
+++ b/www/android/geolocation.js
@@ -29,10 +29,7 @@ module.exports = {
     getCurrentPosition: function(success, error, args) {
         var win = function() {
           var geo = cordova.require('cordova/modulemapper').getOriginalSymbol(window, 'navigator.geolocation');
-          geo.getCurrentPosition(success, error, {
-            enableHighAccuracy: args[0],
-            maximumAge: args[1]
-          });
+          geo.getCurrentPosition(success, error, args);
         };
         exec(win, error, "Geolocation", "getPermission", []);
     },
@@ -40,9 +37,7 @@ module.exports = {
     watchPosition: function(success, error, args) {
         var win = function() {
             var geo = cordova.require('cordova/modulemapper').getOriginalSymbol(window, 'navigator.geolocation');
-            geo.watchPosition(success, error, {
-                enableHighAccuracy: args[1]
-            });
+            geo.watchPosition(success, error, args);
         };
         exec(win, error, "Geolocation", "getPermission", []);
     },


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org