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.