Friday, October 4, 2013

Re: Passing Object Literal to Javascript method ?

BTW: where can I find an example of using the method JavascriptObject.createFunction()?
I think it can be used to wrap a java instance and forward a js call to a call in the instance, but don't understand how this can be done through this function creation method (can't find any example on the net).

I am really not a JS expert but I have a hard time imagine a use case for an empty function returned by JavaScriptObject.createFunction(). Although JavaScript is a dynamic language I am pretty sure you can not redefine a method's empty body after its defined.

Because its useless you won't find examples for it and IMHO can just be deleted in GWT.

-- 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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate