     componentWillUnmount: ->
         if @_saveInterval
             window.clearInterval @_saveInterval
-        #if @state.isDraft and @state.id?
-        #    if not window.confirm(t 'compose confirm keep draft')
-        #        MessageActionCreator.delete @state.id, (error) ->
-        #            if error?
-        #                LayoutActionCreator.alertError "#{t("message action delete ko")} #{error}"
-        #            else
-        #                LayoutActionCreator.notify t('compose draft deleted')
+        if @state.isDraft and
+           @state.id? and
+           not window.confirm(t 'compose confirm keep draft')
+            MessageActionCreator.delete @state.id, (error) ->
+                if error?
+                    LayoutActionCreator.alertError \
+                        "#{t("message action delete ko")} #{error}"
+                else
+                    LayoutActionCreator.notify t('compose draft deleted')
 
     getInitialState: (forceDefault) ->
 

        settings:             React.PropTypes.object.isRequired

    shouldComponentUpdate: (nextProps, nextState) ->
        return not(_.isEqual(nextState, @state)) or not (_.isEqual(nextProps, @props))

    render: ->


                              document.documentElement.msMatchesSelector

                        if matchesSelector?
                            return matchesSelector.call node,
                                '.rt-editor blockquote, .rt-editor blockquote *'
                        else
                            while node? and node.tagName isnt 'BLOCKQUOTE'
                                node = node.parentNode
