Ticket #3549 (closed bug: fixed)
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: | |
| Blocking: | Blocked by: |
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.*
---
Change History
comment:2 Changed 5 years ago by flesler
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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