Skip to content
Permalink
Browse files
Merge branch 'master' of github.com:DrJojo/cordova-plugin-geolocation
  • Loading branch information
zalun committed Mar 5, 2015
2 parents 828471f + 3b06100 commit 399b164b66595e734883ea5001b932f573d5003e
Showing 1 changed file with 4 additions and 1 deletion.
@@ -39,7 +39,10 @@ module.exports = {
addWatch: function(success, error, args) {
var geo = cordova.require('cordova/modulemapper').getOriginalSymbol(window, 'navigator.geolocation');
var id = args[0];
var nativeId = geo.watchPosition(success, error, {
function successCallback(position) {
success(position.coords);
}
var nativeId = geo.watchPosition(successCallback, error, {
enableHighAccuracy: args[1]
});

0 comments on commit 399b164

Please sign in to comment.