cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hermw...@apache.org
Subject git commit: call FxOS's getCurrentProxy added
Date Fri, 01 Nov 2013 22:59:06 GMT
Updated Branches:
  refs/heads/dev a2f73efc5 -> 74c05d8b3


call FxOS's getCurrentProxy added


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

Branch: refs/heads/dev
Commit: 74c05d8b3a0476013175b14376f6c819e3bee3ad
Parents: a2f73ef
Author: Piotr Zalewa <piotr@zalewa.info>
Authored: Thu Oct 31 14:17:38 2013 +0100
Committer: Herm Wong <herm.wong@gmail.com>
Committed: Fri Nov 1 15:57:24 2013 -0700

----------------------------------------------------------------------
 src/firefoxos/GeolocationProxy.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/blob/74c05d8b/src/firefoxos/GeolocationProxy.js
----------------------------------------------------------------------
diff --git a/src/firefoxos/GeolocationProxy.js b/src/firefoxos/GeolocationProxy.js
index 0f05f02..a9661da 100644
--- a/src/firefoxos/GeolocationProxy.js
+++ b/src/firefoxos/GeolocationProxy.js
@@ -24,10 +24,10 @@
 module.exports = {
 
     getCurrentPosition: function(win, geolocationError, args) {
-        win(position);
+        return navigator.geolocation.getCurrentPosition(win, geolocationError);
     },
     
-    geolocationError(error) {
+    geolocationError: function(error) {
         switch(error.code) {
             case error.TIMEOUT:
                 console.log("geolocation timeout");
@@ -35,7 +35,7 @@ module.exports = {
             case error.POSITION_UNAVAILABLE:
                 console.log("position unavailable");
                 break;
-            case error:.PERMISSION_DENIED:
+            case error.PERMISSION_DENIED:
                 console.log("permission denied");
                 break;
             default:    
@@ -46,4 +46,4 @@ module.exports = {
 
 };
 
-require("cordova/firefoxos/commandProxy").add("Geolocation", module.exports);
\ No newline at end of file
+require("cordova/firefoxos/commandProxy").add("Geolocation", module.exports);


Mime
View raw message