Question about OscilatorNode (https://github.com/google/closure-compiler/blob/c77ca197a1f6674e4c267a29a3643a86b61cf51d/externs/browser/w3c_audio.js)
This start method is translated as a "StartCallbackFunction start", should it not be translated as a method directly? This callback field cannot be called so it doesn't work. /** @param {number=} when */ OscillatorNode.prototype.start = function(when) {}; Example usage here (https://github.com/ibaca/rxbreakout-gwt/blob/master/src/main/java/breakout/client/Breakout.java#L179). On Wednesday, May 10, 2017 at 12:06:12 AM UTC+2, Goktug Gokdogan wrote: > > BTW, if you are using elemental2, keep in mind that these are beta > releases to get feedback and APIs will keep changing until we finalize it. > So be prepared for breakages in releases until we do the final release cut. > > On Tue, May 9, 2017 at 2:32 PM, Julien Dramaix <julien....@gmail.com > <javascript:>> wrote: > >> I forgot to mention: as a workaround, you can create your own JsFunction >> callback and cast it to Function: >> @JsFunction >> interface MyJsFunction { >> void onInvoke(....); >> >> default Function asFunction() { >> return (Function) this; >> } >> } >> >> On Tue, May 9, 2017 at 9:37 AM Julien Dramaix <julien....@gmail.com >> <javascript:>> wrote: >> >>> > 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 >>> >>> Yes, the externs use the Function object as type instead of using a >>> function type like {function():any}. >>> We'll fix that for the next version. >>> >>> On Tue, May 9, 2017 at 6:02 AM Thomas Broyer <t.br...@gmail.com >>> <javascript:>> wrote: >>> >>>> >>>> >>>> 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 >>>> <javascript:>. >>>> 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 >>>> >>>> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/e1331a22-74f7-4648-b76b-0a2fb43a2dfc%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >> 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 >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-web-toolkit-contributors/CABb_3%3D52vj1gbcf_MPq5UiThib3y0w4nDQHs0Bu8Sb6Ubg5Tyw%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/google-web-toolkit-contributors/CABb_3%3D52vj1gbcf_MPq5UiThib3y0w4nDQHs0Bu8Sb6Ubg5Tyw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/1acfd426-1d9f-4e6d-9bd1-be6d8fc26c82%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.