diff options
author | Manolo Carrasco <manolo@apache.org> | 2011-12-23 08:11:41 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2011-12-23 08:11:41 +0000 |
commit | 9f4543c5a606c138a011344d235cc683d5de3ffe (patch) | |
tree | 86276fb6c0ea998bfe17d0f69718054d60ff889e /gwtquery-core/src | |
parent | 20701fa27ebf71ff3cdfca10433e2a98a1e2576b (diff) | |
download | gwtquery-9f4543c5a606c138a011344d235cc683d5de3ffe.tar.gz gwtquery-9f4543c5a606c138a011344d235cc683d5de3ffe.zip |
Fix compilation. Last commit removed a used method by mistake
Diffstat (limited to 'gwtquery-core/src')
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java index 1992edad..b8c3e4e3 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/js/JsUtils.java @@ -321,4 +321,12 @@ public class JsUtils { return Properties.create(); } } + + /** + * Return whether the event was prevented + */ + public static native boolean isDefaultPrevented(JavaScriptObject e)/*-{ + return e.defaultPrevented || e.returnValue === false + || e.getPreventDefault && e.getPreventDefault() ? true : false; + }-*/; } |