I suppose it'll eventually be in a jsinterop util class but for now you have to use JSNI: https://github.com/gwtproject/gwt/issues/9364
On Monday, September 12, 2016 at 11:03:31 PM UTC+2, Zufar Fakhurtdinov wrote:
-- On Monday, September 12, 2016 at 11:03:31 PM UTC+2, Zufar Fakhurtdinov wrote:
Thank you for answer! Writing it by hand is annoying, but maybe later it will be generated.
Maybe you know.. How can I use 'in' operator?protected static native boolean pointerLockSupported() /*-{
return 'pointerLockElement' in $wnd.document ||
'mozPointerLockElement' in $wnd.document ||
'webkitPointerLockElement' in $wnd.document;
}-*/;
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