Opened 13 years ago
Closed 13 years ago
#5303 closed bug (fixed)
calling remove/handle() with multiple namespaces
Reported by: | Robert Katić | Owned by: | brandon |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | event | Version: | 1.3.2 |
Keywords: | namespaces | Cc: | |
Blocked by: | Blocking: |
Description
Both functions generates the RegExp that doesn't work properly when it have to test presence of more namespaces.
The two identical lines in event.remove() and event.handle():
var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\ \.") + "(\\.|$)");
would be:
var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join("\\. (?:.*\\.)?") + "(\\.|$)");
Change History (2)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Patch