Skip to main content

Bug Tracker

Side navigation

#5303 closed bug (fixed)

Opened September 28, 2009 01:50PM UTC

Closed November 25, 2009 04:59PM UTC

calling remove/handle() with multiple namespaces

Reported by: rkatic 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("\\\\.
(?:.*\\\\.)?") + "(\\\\.|$)");
Attachments (0)
Change History (2)

Changed November 19, 2009 05:16AM UTC by rkatic comment:1

Changed November 25, 2009 04:59PM UTC by john comment:2