diff options
author | jdramaix <julien.dramaix@gmail.com> | 2013-11-29 13:08:22 +0100 |
---|---|---|
committer | jdramaix <julien.dramaix@gmail.com> | 2013-11-29 13:08:22 +0100 |
commit | 1a3bcc9d8559518872588dda9c80bbbec000ed9f (patch) | |
tree | 727762739d44833595ff18295c314105a78b7062 | |
parent | 9df2f18c2b655db88abc31787ae7903f01f71060 (diff) | |
download | gwtquery-1a3bcc9d8559518872588dda9c80bbbec000ed9f.tar.gz gwtquery-1a3bcc9d8559518872588dda9c80bbbec000ed9f.zip |
fix issue 211
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java | 4 | ||||
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index 479f90ab..75d0c18b 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java @@ -2483,9 +2483,11 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> { * 'in' to a frequent task. Whenever the mouse cursor is moved over a matched element, the first * specified function is fired. Whenever the mouse moves off of the element, the second specified * function fires. + * + * Since GQuery 1.4.0, this method binds handlers for both mouseenter and mouseleave events. */ public GQuery hover(Function fover, Function fout) { - return bind(Event.ONMOUSEOVER, null, fover).bind(Event.ONMOUSEOUT, null, fout); + return bind("mouseenter", null, fover).bind("mouseleave", null, fout); } /** diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java index b8e73ae1..dad7099a 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/events/EventsListener.java @@ -811,5 +811,4 @@ public class EventsListener implements EventListener { function.clean(); } } - } |