Event namespaces are ignored when bubbeling up!
Hi,
I've found some strange behaviour with event namespaces. Simple example:
- $( "body" )
- .bind( "testevent", function () {
- alert( "should not trigger in body" );
- })
- .bind( "testevent.active", function () {
- alert( "should trigger in body" );
- });
- $( "#test" )
- .bind( "testevent", function () {
- alert( "should not trigger in #test" );
- })
- .bind( "testevent.active", function () {
- alert( "should trigger in #test" );
- })
- .trigger( "testevent.active" );
Is it a bug that both events attached to BODY are executed when the "testevent.active" event is triggered or am I missing something?
If testet this with 1.5 and 1.5.1 RC...
Torsten