I have two namespaced events bound like so: $("body").bind("selected.proctor",function(e,data) { /* stuff*/}); $("body").bind("selected.spg",function(e,data) { /* stuff*/});
Then an anchor (inside the body of course) fires the event like so: $("a").trigger("selected.spg",[somedata]); But both bound event handlers are getting executed. However if I make the event trigger specific to the bound element things work as expected : $("body").trigger("selected.spg",[somedata]); Am I wrong in assuming the proper namespaced event should be the only one fired in this case? Is this a bug? It appears that somehow the namespacing is getting trimmed or ignored by the time the event has bubbled up.