title: How to stop events bubbling in jQuery?
body: <p>How do I stop custom event bubbling in jQuery?</p>
  
  <p>For example I have this code:</p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>$('.myclass').bind('amodaldestroy', function(){
      ....does something.....
  })
  </code></pre>
  
  <p>How do I only allow this to be triggered once on the first element it finds when bubbling? Can I just add return <code>false</code>?</p>
  
  <pre class="lang-js prettyprint-override"><code>$('.myclass').bind('amodaldestroy', function(){
       ....does something.....
      return false;
  })
  </code></pre>