'use babel'

import {CompositeDisposable} from 'atom'

export class Editor {
  constructor(editorLinter) {
    this.editor = editorLinter.editor
    this.editorLinter = editorLinter
    this.subscriptions = new CompositeDisposable()
  }
  dispose() {
    this.editor = null
    this.editorLinter = null
    this.subscriptions.dispose()
  }
}

@@ -14,16 +14,25 @@
 import %7B
+Emitter, 
 Composit
@@ -231,24 +231,237 @@
 isposable()%0A
+    this.emitter = new Emitter()%0A%0A    this.subscriptions.add(this.emitter)%0A  %7D%0A  onDidDestroy(callback) %7B%0A    return this.emitter.on('did-destroy', callback)%0A  %7D%0A  destroy() %7B%0A    this.emitter.emit('did-destroy')%0A
   %7D%0A  dispos

Implement basic methods in editor