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
[email protected]::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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.