Hello,

I'm trying to integrate 3rd party javascript library into GWT.
(Autodesk Design Review for displaying 3D models - works only in IE by
the way)

However I bumped into the following syntax, which is absolutely valid
in this library:
Content.Objects(1) = userCollection;

so I used it in JSNI:
public final native void setSelection(UserCollection userCollection) /
*-{
    this.Objects(1) = userCollection';
}-*/;

However Google won't let it compile and complaints about:
"Invalid assignment left-hand side"


So I tried to use eval function:
public final native void setSelection(UserCollection userCollection) /
*-{
    eval('this.Objects(1) = userCollection');
}-*/;

This works fine in hosted mode, however in production mode parameters
are obsufcated and eval fails.

Is there any way how to write this construct in JSNI?

Thank you

-- 
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-tool...@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.

Reply via email to