Friday, October 4, 2013

Re: Passing Object Literal to Javascript method ?

Something similar (but can't remember if it actually used createFunction) was used to "reset" an XHR's onreadystatechange to avoid some leak or crash in some browser (IE?)

On Friday, October 4, 2013 4:33:03 PM UTC+2, Ed wrote:
@Jens: I was thinking the same, but "somebody" has added with a goal I thought, so there would be any use of it ;)


On Fri, Oct 4, 2013 at 4:28 PM, Jens <jens.ne...@gmail.com> wrote:
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 a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/xOrOUcTas3Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@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.

--
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