Ticket #5138 (closed bug: duplicate)
Namespaced events sometimes get triggered when the *beginning* of the namespace matches
| Reported by: | Skalman | Owned by: | brandon |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | event | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
This bug exists if multiple namespaces for an event are specified, both when bound and triggered. When triggering, the first namespace (in alphabetical order) doesn't have to match more than the *beginning* of a bound namespace.
Demonstration of the bug:
$(window).bind("test.beginning.two", myFunc);
$(window).trigger("test.begin.two"); myFunc gets triggered, but shouldn't
More examples in the file.
Attachments
Change History
Changed 4 years ago by Skalman
-
attachment
jQuery-event-bug.htm
added
comment:1 follow-up: ↓ 2 Changed 3 years ago by Skalman
Could be a dupe of #5303 (or the other way around, since that was submitted after this bug). Not totally sure though. Someone with greater insight in the jQuery code should check it out.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Demonstration of the bug