Friday, February 19, 2016

Re: Js Interop question

It means it is much simpler and faster in RT just to leave it as is in JSNI.

Right ? 

On Friday, February 19, 2016 at 12:56:06 PM UTC+3, Jens wrote:
I think you either have to create a custom JS function that does the default value thing so you can call that function using JsInterop or you need to return Double (so the method can return null if devicePixelRatio is not available) and do the default value thing in Java using an additional method, e.g. devicePixelRatioOrDefault() which then returns a primitive double.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment