Opened 11 years ago
Closed 11 years ago
#11514 closed bug (invalid)
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()".
Change History (1)
comment:1 Changed 11 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
We don't fix bugs in old versions.