Skip to main content

Bug Tracker

Side navigation

#5138 closed bug (duplicate)

Opened August 29, 2009 06:00AM UTC

Closed June 25, 2010 02:32AM UTC

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:
Blocked by: Blocking:
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 (1)
  • jQuery-event-bug.htm (0.7 KB) - added by Skalman August 29, 2009 06:01AM UTC.

    Demonstration of the bug

Change History (3)

Changed November 26, 2009 12:46AM UTC by Skalman comment:1

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.

Changed December 05, 2009 07:50PM UTC by Skalman comment:2

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.

Changed June 25, 2010 02:32AM UTC by dmethvin comment:3

resolution: → duplicate
status: newclosed

Dup of #5303.