Bug Tracker

Modify

Ticket #5138 (closed bug: duplicate)

Opened 4 years ago

Last modified 3 years ago

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

jQuery-event-bug.htm Download (702 bytes) - added by Skalman 4 years ago.
Demonstration of the bug

Change History

Changed 4 years ago by Skalman

Demonstration of the bug

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.

comment:2 in reply to: ↑ 1 Changed 3 years ago by Skalman

This problem has been fixed as of jQuery 1.4a1. Either it was a dupe of #5303 (which is fixed) or it has been fixed anyway.

The bug can now be closed.

comment:3 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

Dup of #5303.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.