title: How to prevent default action with backbone?
body: <p>I have a delete link in Rails:</p>
  
  <pre><code>&lt;%= link_to "#{image_tag("icons/icon_delete.png", :alt =&gt; "Delete")} Delete".html_safe, "#suppliers", id: supplier.id, class: "delete", :title =&gt; "Delete", :confirm =&gt; 'Are you sure?', :method =&gt; :delete %&gt;
  </code></pre>
  
  <p>And I have a backbone event that catches it (CofeeScript):</p>
  
  <pre><code>  events: -&gt;
      "click a.delete": "deleteSupplier"
  
    deleteSupplier: (event) -&gt;
      event.preventDefault()
      console.log("delete")
  </code></pre>
  
  <p>All of this works fine, except that when I click OK on the confirm dialog, the link is followed.  Any ideas how to prevent this?  If I return false from deleteSupplier the confirmation no longer works which isn't quite what I'm after.  I'd like the confirmation to work, just not follow through the link when I click OK.</p>
  
  <p>EDIT: I forgot to mention that these links are inserted <em>after</em> the page is loaded through an ajax get request.  And I also tested by removing the :confirm and it doesn't seem to make any difference.  I believe it has something to do with being loaded through the ajax request, but I would have thought that the event would not even fire if that were the case :(</p>