     @subscriptions.dispose()
 
   serialize: ->
-    #splitDiffViewState: @splitDiffView.serialize()
+    # does nothing for now
 
+  # gets two visible editors
+  # auto opens new editors so there are two to diff with
   getVisibleEditors: ->
     editor1 = null
     editor2 = null
 
+    # find visible editors
     atom.workspace.observeTextEditors (editor) =>
       editorView = atom.views.getView(editor)
       $editorView = $(editorView)


    @isEnabled = true

  disable: ->
    @clearDiff()
    if @isEnabled


    return editors

  # called by the command "Diff Panes" to do initial diff
  # sets up subscriptions for auto diff and disabling when a pane is destroyed
  diffPanes: ->
    editors = @getVisibleEditors()

    @editorSubscriptions = new CompositeDisposable()
    @editorSubscriptions.add editors.editor1.onDidStopChanging =>
