   cancelEdit: (e)->
     e?.preventDefault()
     e?.stopImmediatePropagation()
+    @endEdit()
+
+  endEdit: (e)->
+    e?.preventDefault()
+    e?.stopImmediatePropagation()
     if @inEdit()
       @$el.find(':focus').blur()
       @$el.removeClass('editor').addClass('neat-editable')

          @onSaveSuccess()
        error: _.bind(@onSaveError, @)

    @cancelEdit()

  okToSave: (attributes)->
    true

        wait: true
        success: => @onDestroySuccess
        error: _.bind(@onSaveError, @)
      @endEdit()

  confirmDestroy: (resource, callback)->
    if confirm("Delete this #{resource}?")
