Skip to main content

Bug Tracker

Side navigation

#14359 closed bug (migrated)

Opened September 13, 2013 11:38AM UTC

Closed October 21, 2014 12:20AM UTC

triggering focus event with namespace runs all focus listeners

Reported by: Owned by: gibson042
Priority: low Milestone: None
Component: event Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:

Using jQuery 1.9 onwards, calling .trigger('focus.myevent') focusses the target element and triggers all "focus" handlers, regardless of namespace.

This is inconsistent with other events, where only handlers with the "myevent" namespace would be triggered.

This behaviour does not appear to be present in 1.7.2 or 1.8.3.

I have only tested this on Google Chrome Version 29.0.1547.66 m, in Windows 7

Attachments (0)
Change History (3)

Changed September 13, 2013 01:40PM UTC by dmethvin comment:1

component: unfiledevent
priority: undecidedlow
status: newopen

This is another result of triggering the native focus event so we can get the event order right. There are no jQuery extensions (namespaces, data) in those cases. See #13428.

Changed September 17, 2013 01:39PM UTC by gibson042 comment:2

owner: → gibson042
status: openassigned

Third time's the charm...

Changed October 21, 2014 12:20AM UTC by m_gol comment:3

resolution: → migrated
status: assignedclosed