I hit the same issue as well. See the thread below which describes problem
and a workaround.
http://groups.google.com/group/google-web-toolkit-contributors/tree/browse_frm/month/2010-04/f728b64e7237b937?rnum=211_done=%2Fgroup%2Fgoogle-web-toolkit-contributors%2Fbrowse_frm%2Fmonth%2F2010-04%3F
Sanjiv
On Thu, Dec 29, 2011 at 4:32 PM, Ali ali.sak...@gmail.com wrote:
Hi
In following example (v2.3.0 development mode) `$entry()` converts
returned `false` to `Boolean(false)` which can be evaluated to true if used
immediately.
public class Example {
public boolean test() { return false; }
public native void inject() /*-{
var self = this;
$wnd.test = $entry(function(){ return se...@my.gwt.client.Example
::test()(); });
}-*/;
}
in js
alert(test() + = + (test() ? true : false));
results in `false=true`.
Is this a bug or I have used it incorrectly?
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/HqVtZcnQ4B4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.