-{Emitter} = require('atom')
+{Emitter, CompositeDisposable} = require('atom')
 validate = require('./validate')
 helpers = require('./helpers')
 

      Regular: new WeakSet
      Fly: new WeakSet
    @emitter = new Emitter

  getLinters: ->
    return @linters.slice() # Clone the array

    return @emitter.on('did-update-messages', callback)

  dispose: ->
    @subscriptions.dispose()
    # Intentionally set it to empty array instead of null 'cause this would
    # disallow further execution, while still not throwing errors in current one
    @linters = []

module.exports = LinterRegistry
