Skip to main content

Bug Tracker

Side navigation

#3549 closed bug (fixed)

Opened October 29, 2008 05:31PM UTC

Closed January 25, 2010 09:46PM UTC

Binding multiple custom namespaced events is not working correctly

Reported by: Tim Molendijk Owned by: john
Priority: major Milestone: 1.4.1
Component: event Version: 1.4
Keywords: bind multiple custom namespaced events Cc:
Blocked by: Blocking:
Description

Consider the following snippet:


$().

bind('myevent.ns1', function() {console.log('myevent.ns1');}).

bind('myevent.ns2', function() {console.log('myevent.ns2');}).

bind('myevent.ns1 myevent.ns2', function() {console.log('myevent.*');});

$().

trigger('myevent.ns1).

trigger('myevent.ns2');


The result is that the following is printed to console:


myevent.ns1

myevent.ns2

myevent.*


While I would have expected:


myevent.ns1

myevent.*

myevent.ns2

myevent.*


Attachments (0)
Change History (6)

Changed October 29, 2008 11:16PM UTC by flesler comment:1

need: ReviewPatch

That is indeed right. handler.type is simply being overriden.

Changed October 29, 2008 11:17PM UTC by flesler comment:2

Note that this requires medium-big changes, it won't be fixed right away. But will be taken into account for the next release.

Thanks

Changed November 04, 2008 03:51PM UTC by Tim Molendij comment:3

Cool. Thanks.

Changed January 13, 2009 11:47PM UTC by john comment:4

owner: brandonjohn

Changed July 15, 2009 08:47AM UTC by yehuda comment:5

milestone: 1.31.3.3

Changed January 25, 2010 09:46PM UTC by john comment:6

milestone: 1.41.4.1
resolution: → fixed
status: newclosed
version: 1.2.61.4