commit | c344da9d602fa81765ab8d2e61b27533f9843304 | [log] [tgz] |
---|---|---|
author | rdayal@google.com <rdayal@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Mon Jan 30 19:12:24 2012 +0000 |
committer | rdayal@google.com <rdayal@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Mon Jan 30 19:12:24 2012 +0000 |
tree | c2bf23ebf438a5c3b6018c8b64e047e6ae020487 | |
parent | c5b5decb6e1d0b986e5479744b860d50ab7baf9f [diff] |
Fix issue 6834. Repost of Reitveld issue 1563803. Patch by: Daniel Kurka Review at http://gwt-code-reviews.appspot.com/1609804 Review by: rice@google.com git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10858 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/geolocation/client/Geolocation.java b/user/src/com/google/gwt/geolocation/client/Geolocation.java index 81f11f5..16ac210 100644 --- a/user/src/com/google/gwt/geolocation/client/Geolocation.java +++ b/user/src/com/google/gwt/geolocation/client/Geolocation.java
@@ -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; }-*/; }