Bug Tracker

Opened 11 years ago

Closed 10 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 11 years ago by flesler

need: ReviewPatch

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

comment:2 Changed 11 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

comment:3 Changed 11 years ago by Tim Molendij

Cool. Thanks.

comment:4 Changed 11 years ago by john

Owner: changed from brandon to john

comment:5 Changed 10 years ago by yehuda

Milestone: 1.31.3.3

comment:6 Changed 10 years ago by john

Milestone: 1.41.4.1
Resolution: fixed
Status: newclosed
Version: 1.2.61.4
Note: See TracTickets for help on using tickets.