I've now got this to work. I cleaned my SDM cache :-)
It only works with the generateJsInteropExports flag set though.
On Thursday, 21 July 2016 15:34:19 UTC+1, Steve Andrews wrote:
>
> 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/79a21892-9379-4cfb-b65b-055eba1a4ce9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.