     button.destroy()  for own _key, button of @buttons
 
   click:(e)->
-    @destroy() if $(e.target).is(".closeModal")
+    @cancel() if $(e.target).is(".closeModal")
     if $(e.target).is(".showHelp")
       {helpContent} = @getOptions()
       if helpContent

        @setClass "active"

  cancel:->
    @emit 'ModalCancelled'
    @destroy()

  destroy:->
    $(window).off "keydown.modal"


    options.helpContent  or= null
    options.helpTitle    or= "Need help?"
    options.disableCancel ?= no

    super options, data

