I think you have to write
public final native CssHolder perform(Element element, int duration,
String args) /*-{
return $wnd.CssMod.perform(element, eval('obj = ' + args + ';'));
}-*/;
perform(element, "{ \"opacity\":2}");
Maybe the following also works:
public final native CssHolder perform(Element element, int duration,
JavaScriptObject params) /*-{
return $wnd.CssMod.perform(element, params);
}-*/;
perform(element, JsonUtils.safeEval("{ \"opacity\":2}"));
With the above you could probably also create a Params.Builder that creates
the JSO and then use that JSO directly as parameter.
-- J.
--
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.