Reusing a Bootstrap 3 modal

I knew it was supposed to be possible, but I had a hard time figuring it out - it was really short and sweet in the end! Memo to me:

$(document).on 'hidden.bs.modal', (e) ->
  $(e.target).removeData 'bs.modal'
  return

Comments