 
     @destroy = =>
       ui.hideDialog @$dialog
+      @$dialog.remove()
       return
 
     @show = =>
       ui.showDialog @$dialog
+      self = @
       $selectedDraft = @$dialog.find '.note-draft'
         .click (e) ->
           e.preventDefault

          sDate: isoDate
          body : body
        alert lang.saved
        ui.hideDialog @$dialog

        return
      return

    for key, draft of drafts
      do ->
        fDate = if options.sDrafts.dateFormat and typeof options.sDrafts.dateFormat == 'function' then options.sDrafts.dateFormat(draft.sDate) else draft.sDate
        fName = draft.name.replace "#{options.sDrafts.storePrefix}-", ""
        htmlList += "<li class='list-group-item'><a href='#' class='note-draft' data-draft='#{key}'>#{fName} - <small>#{fDate}</small></a><a href='#' class='label label-danger pull-right delete-draft' data-draft='#{key}'>#{lang.deleteDraft}</a></li>"

    context.memo 'button.sDraftsLoad', () ->
      button = ui.button
