 {StacktraceView} = require './stacktrace-view'
 {NavigationView} = require './navigation-view'
 {decorate, cleanup} = require './editor-decorator'
+
+subs = []
 
 module.exports =
 


    StacktraceView.registerIn(atom.workspace)

    @acceptTrace = atom.on 'stacktrace:accept-trace', ({trace}) =>
      for trace in Stacktrace.parse(trace)
        trace.register()
        atom.workspace.open trace.getUrl()

  deactivate: ->
    @navigationView.remove()

    sub.off() for sub in subs
