jquery event namespace bubbling issue
<p>I stumbled upon an issue with event namespacing while developing a jQuery plugin.</p>

<p>here is the html</p>

<pre><code>&lt;div class="parent"&gt;
    &lt;div class="child"&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;a class="btn-a"&gt;trigger a&lt;/a&gt;
&lt;a class="btn-b"&gt;trigger b&lt;/a&gt;
&lt;a class="btn-c"&gt;trigger c&lt;/a&gt;
</code></pre>

<p>Here is the jQuery</p>

<pre><code>jQuery('#content div.child')
    .bind('a.a',function(){alert('a-child');})
    .bind('a.b',function(){alert('b-child');})
    .bind('a.c',function(){alert('c-child');});


jQuery('#content div.parent')
    .bind('a.b',function(){alert('b-parent');})
    .bind('a.c',function(){alert('c-parent');});


jQuery('a.btn-a')
    .click(function(){
         jQuery('#content div.child').trigger('a.a');
     });


jQuery('a.btn-b')
   .click(function(){
       jQuery('#content div.child').trigger('a.b');
   });


jQuery('a.btn-c')
    .click(function(){
        jQuery('#content div.child').trigger('a.c');
    });
</code></pre>

<p>In sum, I have attached a namespaced event listener to the child and parent and created three buttons that trigger each of the events(a.a, a.b, a.c). Note the parent is only listening to a.b and a.c. When I click on the button that triggers a.a on the child, only the div.child listener for a.a is fired, but the entire 'a' namespace event bubbles up to div.parent listeners, a.b and a.c, and triggers them.  My question is, how would I still use event namespacing but only have the intended event bubble up(i.e. a.a is the only event that fires for both child and parent).  I am aware of stopPropagation and stopImmediatePropagation. I would not want to put these on the child a.b and a.c listeners because there are times when i do want them to bubble. For instance when I trigger 'a.b' on the child, I would expect the 'a.b' and only the 'a.b' event to be handled by the child and the parent.  </p>

<p>Thanks</p>
