Skip to main content

Bug Tracker

Side navigation

#11514 closed bug (invalid)

Opened March 26, 2012 08:42AM UTC

Closed March 26, 2012 10:02PM UTC

delegate with :not and :last behaves incorrectly

Reported by: Jānis Owned by:
Priority: low Milestone: None
Component: event Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:
Description

"delegate" delegates clicks incorrectly if :not and :last are used in the selector.

Here is an example:

http://jsfiddle.net/vqDGE/

If you click on the "div" blocks on the right and have a console open (I'm using Firefox 11.0 and Firebug), then you can see that the handler gets fired by the desired element and all its direct parents within the delegate's selector (in the example there is only one parent - ".c1").

In jQuery 1.6.4 and 1.7.1 this bug is absent, although it is present e.g. in 1.4.4. too.

I cannot move from 1.5. to 1.6. at the moment, as that would require code revising because of the breaking changes regarding "attr()".

Attachments (0)
Change History (1)

Changed March 26, 2012 10:02PM UTC by sindresorhus comment:1

component: unfiledevent
priority: undecidedlow
resolution: → invalid
status: newclosed

We don't fix bugs in old versions.