Opened 14 years ago
Closed 13 years ago
#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: | |
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.*
---
Change History (6)
comment:1 Changed 14 years ago by
need: | Review → Patch |
---|
comment:2 Changed 14 years ago by
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
comment:4 Changed 14 years ago by
Owner: | changed from brandon to john |
---|
comment:5 Changed 14 years ago by
Milestone: | 1.3 → 1.3.3 |
---|
comment:6 Changed 13 years ago by
Milestone: | 1.4 → 1.4.1 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Version: | 1.2.6 → 1.4 |
That is indeed right. handler.type is simply being overriden.