title: Bootstrap Modal method fires multiple times
body: <p>I am facing issue with bootstrap modal.
  I have implemented the below code.
  I do not know what is happening but on first time when i click "YES" button it is working fine but when i click on NO button and after that when i click yes button ,the yes button click event gets fired mutliple times.
  I have no clue why is this happening.</p>
  
  <pre><code>$('#confirmationModal').modal('show');
  $("#confirmationModal").on('shown.bs.modal', function() {
    $('#confirmationModal').modal({
      backdrop: 'static',
      keyboard: false
    }).one('click', '#yesbutton', function(e) {
      $('#confirmationModal').modal('hide');
  
      //Doing Ajax Stuff and alert data.    
  
      //Very important line.
      //This is needed to prevent multiple firing of the yes button event.
  
      $(this).off(event);
  
    })
  }); * * strong text * *
  </code></pre>