Reviewers: rice, Daniel Kurka,

Description:
Fix issue 6834.

Repost of Rietveld issue 1563803.
Patch by: Daniel Kurka


Please review this at http://gwt-code-reviews.appspot.com/1609804/

Affected files:
  M user/src/com/google/gwt/geolocation/client/Geolocation.java


Index: user/src/com/google/gwt/geolocation/client/Geolocation.java
===================================================================
--- user/src/com/google/gwt/geolocation/client/Geolocation.java (revision 10784) +++ user/src/com/google/gwt/geolocation/client/Geolocation.java (working copy)
@@ -294,8 +294,10 @@
       (callback, err.code, err.message);
     });

+    var id = -1;
     if (@com.google.gwt.geolocation.client.Geolocation::isSupported()) {
-      $wnd.navigator.geolocation.watchPosition(success, failure, opt);
-    }
+      id = $wnd.navigator.geolocation.watchPosition(success, failure, opt);
+    }
+    return id;
   }-*/;
 }


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to