Hi,
-- I tried using @JsFunction to define a callback for jQuery click handler. jQuery is failing on calling the function, as there was no .apply() method. I've checked and apparently I can call the @JsFunction with brackets (eg. variable()), but nothing like call() or apply() available. Looking into debugger it looks like the @JsFunction instance is having different prototype than normal function (screenshots below).
Am I doing something wrong or is it not yet supported? Will it be supported? I'm running on trunk version from April 3rd.
Thank you,
Marcin
P.S.
I was asking the question in another thread about Java 8. Sorry for re-posting, but I guess it wasn't answered due to thread name not matching the question any more.
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/d/optout.


No comments:
Post a Comment