From b1275420a3b4b726908aefb292cb5b1a69e9b6df Mon Sep 17 00:00:00 2001 From: Steve Kinney Date: Sat, 14 May 2016 19:43:30 -0400 Subject: [PATCH] Require download_items inline --- lib/browser/api/app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/browser/api/app.js b/lib/browser/api/app.js index de417943eb5d..291994363648 100644 --- a/lib/browser/api/app.js +++ b/lib/browser/api/app.js @@ -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) })