diff options
author | Julien Dramaix <julien.dramaix@gmail.com> | 2013-12-01 11:44:48 -0800 |
---|---|---|
committer | Julien Dramaix <julien.dramaix@gmail.com> | 2013-12-01 11:44:48 -0800 |
commit | 26e800d9f2328fc3dd1beb9a8ec4a1c3815134be (patch) | |
tree | 9f7e988473d0203b1dd7752d628c004b22e4048b | |
parent | 1b7c780d6c6be7ca00006466cf6cd4a482ae77a0 (diff) | |
parent | 1a3bcc9d8559518872588dda9c80bbbec000ed9f (diff) | |
download | gwtquery-26e800d9f2328fc3dd1beb9a8ec4a1c3815134be.tar.gz gwtquery-26e800d9f2328fc3dd1beb9a8ec4a1c3815134be.zip |
Merge pull request #242 from gwtquery/jd_fix_issue_211
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(); } } - } |