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 comment:1
need: | Review → Patch |
---|
Changed October 29, 2008 11:17PM UTC by 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 comment:3
Cool. Thanks.
Changed January 13, 2009 11:47PM UTC by comment:4
owner: | brandon → john |
---|
Changed July 15, 2009 08:47AM UTC by comment:5
milestone: | 1.3 → 1.3.3 |
---|
Changed January 25, 2010 09:46PM UTC by comment:6
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.