Use EventEmitter instead of emissary

To be consistent with other browser process classes
This commit is contained in:
probablycorey
2014-04-07 14:55:12 -07:00
parent 1f9de98eb2
commit 4b3240eeee

View File

@@ -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