From 52ded401349052dafa353024c972302268790ced Mon Sep 17 00:00:00 2001 From: jdramaix Date: Fri, 2 May 2014 21:37:28 +0200 Subject: [PATCH] code review --- .../java/com/google/gwt/query/client/plugins/Events.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Events.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Events.java index 70928b02..101ae0b9 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Events.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Events.java @@ -428,9 +428,10 @@ public class Events extends GQuery { * @param event * @return */ - private native boolean isEventPropagationStopped(Event event)/*-{ - return !!event.cancelBubble; - }-*/; + private boolean isEventPropagationStopped(Event event) { + // trick to avoid jnsi + return event.cast().getPropertyBoolean("cancelBubble"); + } private void callHandlers(Element e, NativeEvent evt, Function... functions){ for (Function f : functions) { -- 2.39.5