     @suppressListeners = no   unless emitFileContentChangedEvent
 
 
+  destroy: ->
+
+    emmetLoadListeners[@id] = null  unless _.isNull emmetLoadListeners
+
+    super
+
+
   prepareEditor: ->
 
     @setTheme null, no


    next = (err) =>
      throw err  if err
      console.log this
      @editor.setOption 'enableEmmet', value
      @appStorage.setValue 'enableEmmet', value  if save


      emmetPath = globals.acePath.split('/').slice(0, -1)
        .concat(['_ext-emmet.js']).join('/')
      getscript emmetPath, (err) ->
        cb err for key, cb of emmetLoadListeners when typeof cb is 'function'
        EmmetLoadState.READY = yes
        emmetLoadListeners = null
