Skip to main content

Bug Tracker

Side navigation

#6514 closed bug (fixed)

Opened May 02, 2010 06:49PM UTC

Closed April 17, 2011 06:59PM UTC

Last modified April 17, 2011 10:52PM UTC

Mouseenter and mouseleave events not able to be triggered if bound by live

Reported by: brianloveswords Owned by:
Priority: high Milestone: 1.6
Component: event Version: 1.4.2
Keywords: mouseenter, mouseleave, live, trigger Cc:
Blocked by: Blocking:
Description

If mouseenter and mouseleave are bound by live, $.trigger() will not activate them. However if they are bound by $.bind(), they are triggerable.

I've attached a patch including QUnit tests to prove existence, and the fix. You can see the commit here: http://github.com/brianlovesdata/jquery/commit/5f816ffca67e7fdcedcff580d19c4a7d7994c48a

Attachments (1)
  • live-event-trigger-fix.patch (1.4 KB) - added by brianloveswords May 02, 2010 06:51PM UTC.

    QUnit test and fix for mouseenter and mouseleave not being triggerable when bound by live.

Change History (8)

Changed May 06, 2010 07:01PM UTC by matdumsa comment:1

I experienced the same issue. Thanks for the patch, hope it gets in 1.4.3

Changed October 25, 2010 08:21PM UTC by rwaldron comment:2

milestone: 1.4.3
priority: → high
status: newopen

Changed January 02, 2011 12:46AM UTC by rwaldron comment:3

#6880 is a duplicate of this ticket.

Changed January 02, 2011 12:55AM UTC by rwaldron comment:4

#7756 is a duplicate of this ticket.

Changed April 17, 2011 06:58PM UTC by john comment:5

milestone: → 1.6

Changed April 17, 2011 06:59PM UTC by Brian Brennan comment:6

resolution: → fixed
status: openclosed

Fix live mouseenter and mouseleave binding so they can be activated by triggers. Fixes #6514.

Changeset: d46042e0500fb8241bf5ba012dfc779b535aa5fe

Changed April 17, 2011 10:20PM UTC by Brian Brennan comment:7

Fix live mouseenter and mouseleave binding so they can be activated by triggers. Fixes #6514.

Changeset: 3cb9c1835c0382163b2e94ae626a7ae0d2d0d94f

Changed April 17, 2011 10:52PM UTC by rwaldron comment:8

For bookkeeping purpose:

DRY out #6514;

Changeset: 8d3754751dfa348c1d1e2d6735ec8cbc3a404695