On Tuesday, May 9, 2017 at 2:02:40 PM UTC+2, Daniel Harezlak wrote:
>
>
>
> On Tuesday, May 9, 2017 at 1:03:41 PM UTC+2, Thomas Broyer wrote:
>>
>>
>>
>> On Tuesday, May 9, 2017 at 1:03:00 PM UTC+2, Daniel Harezlak wrote:
>>>
>>> HI, what are the replacements for elemental2.Global.window and similar 
>>> in this new release?
>>>
>>
>> elemental2.DomGlobal.window (in elemental2-dom dependency) 
>>
> Thanks!
>
> Another inconsistency with the previous release of elemental2 which broke 
> my code is the use of elemental2.core.Function for the onreadystatechange 
> field in the elemental2.dom.XMLHttpRequest type which prevents providing 
> the function as a lambda. Other function fields in the mentioned type (e.g. 
> onprogress or onloadstart) seem to keep the functional interface 
> semantics. Is this intended or is it an oversight?
>

I believe it's due to how they're declared in the Closure externs:
onreadystatechange and 
onerror: 
https://github.com/google/closure-compiler/blob/8ac08c03cd695b84f8a79ac3a1338172df00003f/externs/browser/w3c_xml.js#L393-L403
vs all the other 
callbacks: 
https://github.com/google/closure-compiler/blob/b85c29855a714cae446f61c8a7b2ccaac747722b/externs/browser/html5.js#L2828-L2862
 

-- 
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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/e1331a22-74f7-4648-b76b-0a2fb43a2dfc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to