Thanks @Jens, I was just playing with it and it was driving me crazy as it
didn't work and because of your example I noticed that the "dot" before the
@ was missing :(... I hate this cryptic JS errors :(...
Anyway, I ended up with this method added to the PropertyBuilder that works:
private static native JavaScriptObject addPropertyIntern(final
JavaScriptObject obj, final String name, final SimpleCommand value) /*-{
obj[name] = function() {
[email protected]::execute()();
}
return obj;
}-*/;
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.