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

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