Skip to main content

Bug Tracker

Side navigation

#5573 closed bug (invalid)

Opened November 30, 2009 08:32PM UTC

Closed November 20, 2010 02:31PM UTC

Code inconsistency between mouseenter/mouseleave and focus/blur special events

Reported by: lrbabe Owned by: brandon
Priority: trivial Milestone: 1.4
Component: event Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

When looking at the special events for mouseenter/mouseleave and focus/blur, you will notice that 'orig' and 'fix' parameters are used in the opposite way:

// Create mouseenter and mouseleave events
	mouseover: "mouseenter",
	mouseout: "mouseleave"
}, function( orig, fix ) {
// Create "bubbling" focus and blur events
	focus: "focusin",
	blur: "focusout"
}, function( orig, fix ){

In the latter one, 'focus' is indeed the original event that need to be fixed, and 'focusin' is the event used as a fix. This order seems to be the appropriate one.

This is not a functional bug, but the linked change on github makes the code more consistent:

Attachments (0)
Change History (1)

Changed November 20, 2010 02:31PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

Patch disappeared.