http://gwt-code-reviews.appspot.com/1060801/diff/1/4 File user/src/com/google/gwt/experimental/geolocation/impl/GeoLocationImpl.java (right):
http://gwt-code-reviews.appspot.com/1060801/diff/1/4#newcode83 user/src/com/google/gwt/experimental/geolocation/impl/GeoLocationImpl.java:83: var success = function(position) { On 2010/10/28 18:21:15, zundel wrote:
when calling back from a javascript event, you need to be careful to
catch
exceptions and forward them to dev mode. Otherwise, your java
exceptions will
disappear into the ether.
Here's a utility class we use in gwt-google-apis:
http://code.google.com/p/gwt-google-apis/source/browse/trunk/ajaxloader/ajaxloader/src/com/google/gwt/ajaxloader/client/ExceptionHelper.java I think you just want var success = $entry(function...); and likewise for any place where JS may call into something that may call Java code. In addition to exception handling, this is essential for all the Scheduler methods to work properly. http://gwt-code-reviews.appspot.com/1060801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors