File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
gwt-material/src/main/java/gwt/material/design/client/js Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 2323import com .google .gwt .event .shared .HandlerRegistration ;
2424import gwt .material .design .client .base .DeferredPrompt ;
2525import gwt .material .design .jquery .client .api .Functions ;
26+ import gwt .material .design .jscore .client .api .core .Element ;
2627import jsinterop .annotations .JsMethod ;
2728import jsinterop .annotations .JsType ;
2829
@@ -38,7 +39,7 @@ public static native boolean matchMedia(String query) /*-{
3839 public static native MediaQueryList getMediaQueryList (String query ) /*-{
3940 return $wnd.window.matchMedia(query);
4041 }-*/ ;
41-
42+
4243 @ JsMethod (namespace = "window" )
4344 public static native void addEventListener (String eventName , Functions .Func1 <Object > event );
4445
@@ -48,6 +49,14 @@ public static native MediaQueryList getMediaQueryList(String query) /*-{
4849 @ JsMethod (namespace = "window" )
4950 public static native String unescape (String param );
5051
52+ public static native void logWindowEvents () /*-{
53+ console.log($wnd.jQuery._data($wnd, "events"));
54+ }-*/ ;
55+
56+ public static native void logEventRegistration (Element element ) /*
57+ console.log($wnd.jQuery._data(element, "events"));
58+ */ ;
59+
5160 @ JsMethod
5261 public static native DeferredPrompt deferredPrompt ();
5362
You can’t perform that action at this time.
0 commit comments