Sanjiv
On Thu, Dec 29, 2011 at 4:32 PM, Ali <ali.sakebi@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 self.@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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment