I've been trying out the new Elemental and have been having trouble with 
EventListener. I'm on the latest GWT Snapshot (2.8.0-20160721.060317-297). 
It seems that the EventListener gets compiled out unless I use the 
Node.AddEventListenerListenerCallback function. Example:

searchButton.addEventListener("click",e -> doSearch());

This gets compiled out and never gets called.

searchButton.addEventListener("click", e-> {doSearch();return true;});

This works using the AddEventListenerListenerCallback function.

I've tried compiling with and without the -generateJsInteropExports flag 
and get the same result. I was using an earlier GWT snapshot version (end 
of June) until a few days ago and didn't get the problem with that version.

Any ideas or is this a bug?
Thanks
Steve

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/d45cdcdb-ab18-442a-b7e6-11f1ff2cbba9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to