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.
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.