auto updater win is an EventEmitter already

This commit is contained in:
Patrick Detlefsen 2015-06-16 16:13:23 +02:00
parent a8469fc79d
commit 62882fe49e

View file

@ -3,11 +3,9 @@ switch process.platform
autoUpdater = require('./auto-updater/auto-updater-win')
else
# take the default binding for the current platform
autoUpdater = process.atomBinding('auto_updater').autoUpdater
EventEmitter = require('events').EventEmitter
autoUpdater.__proto__ = EventEmitter.prototype
autoUpdater = process.atomBinding('auto_updater').autoUpdater
EventEmitter = require('events').EventEmitter
autoUpdater.__proto__ = EventEmitter.prototype
autoUpdater.on 'update-downloaded-raw', (args...) ->
args[3] = new Date(args[3]) # releaseDate