Bug Tracker

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:


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)

Note: See TracTickets for help on using tickets.