Skip to content

Commit

Permalink
Require download_items inline
Browse files Browse the repository at this point in the history
  • Loading branch information
stevekinney committed May 14, 2016
1 parent e5036c0 commit b127542
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/browser/api/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
})
Expand Down

0 comments on commit b127542

Please sign in to comment.