title: Bootstrap modal event not fired
body: <p>I want to simply do some logic after my modal has been dismissed.</p>
  
  <p>In the modal I have a button:</p>
  
  <pre><code>&lt;button type="button" class="btn btn-primary" onclick="$('#mymodal').modal('hide');"&gt;Save changes&lt;/button&gt;
  </code></pre>
  
  <p>In the view I'm waiting for the event being fired, but it never does.</p>
  
  <pre><code> $('#mymodal').on('hide.bs.modal', function (e) {
         alert('event fired')
  });
  </code></pre>
  
  <p>I tried to put breakpoints in chrome dev tools, the event is only hit at the first load of the view. After that the breakpoint is never reached again. Am I doing something wrong?</p>
  
  <p>By the way, the modal is hiding the way I want.</p>