Require download_items inline

This commit is contained in:
Steve Kinney 2016-05-14 19:43:30 -04:00
parent e5036c0988
commit b1275420a3

View file

@ -4,7 +4,6 @@ const {Menu} = require('electron')
const {EventEmitter} = require('events')
const bindings = process.atomBinding('app')
const downloadItemBindings = process.atomBinding('download_item')
const {app} = bindings
Object.setPrototypeOf(app, EventEmitter.prototype)
@ -51,7 +50,7 @@ for (let name of events) {
}
// Wrappers for native classes.
downloadItemBindings._setWrapDownloadItem((downloadItem) => {
process.atomBinding('download_item')._setWrapDownloadItem((downloadItem) => {
// downloadItem is an EventEmitter.
Object.setPrototypeOf(downloadItem, EventEmitter.prototype)
})