             false
         button.render
 
-      initialize = ->
+      @initialize = =>
         $container = if options.dialogsInBody then $(document.body) else $editor
         body = '<div class="form-group">' + '<label>' + lang.provideName + '</label>' + '<input class="note-draftName form-control" type="text" /></div>'
         footer = '<button href="#" class="btn btn-primary note-link-btn">' + lang.save + '</button>'

            @saveDraft draftName
            false

      saveDraft = (name) ->
        isoDate = new Date
          .toISOString
        name ?= isoDate

          body : context.code
        ui.hideDialog @$dialog

        return
      return

  $.extend $.summernote.plugins,
  'sDraftsLoad' : (context) ->
