 
     @editorSaveSubscriptions = {}
     @editorCloseSubscriptions = {}
+
+    # @editorSaveSubscriptions = new Observer()
+    # @editorCloseSubscriptions = new Observer()
 
     atom.config.observe 'jsformat.format_on_save', =>
       @subscribeToEvents()

        for subscriptionId, subscription of @editorCloseSubscriptions
          subscription.dispose()
          delete @editorCloseSubscriptions[subscriptionId]


            delete @editorSaveSubscriptions[editor.id]
            delete @editorCloseSubscriptions[editor.id]


          # saveSubscription = buffer.onWillSave =>
          #   buffer.transact =>
          #     @format(state)
          #
          # closeSubscription = buffer.onDidDestroy =>
          #   debugger
          #
          # @editorSaveSubscriptions.addSubscription(saveSubscription)
          # @editorCloseSubscriptions.addSubscription(closeSubscription)
    else
      if @editorCreationSubscription
        @editorCreationSubscription.dispose()
