mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Use EventEmitter instead of emissary
To be consistent with other browser process classes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
autoUpdater = require 'auto-updater'
|
||||
dialog = require 'dialog'
|
||||
{Emitter} = require 'emissary'
|
||||
_ = require 'underscore-plus'
|
||||
{EventEmitter} = require 'events'
|
||||
|
||||
IDLE_STATE='idle'
|
||||
CHECKING_STATE='checking'
|
||||
@@ -11,7 +12,7 @@ ERROR_STATE='error'
|
||||
|
||||
module.exports =
|
||||
class AutoUpdateManager
|
||||
Emitter.includeInto(this)
|
||||
_.extend @prototype, EventEmitter.prototype
|
||||
|
||||
constructor: ->
|
||||
@state = IDLE_STATE
|
||||
|
||||
Reference in New Issue
Block a user