From e5036c0988a67db0fa8497b472872ec75dc220cb Mon Sep 17 00:00:00 2001 From: Steve Kinney Date: Sat, 14 May 2016 12:28:28 -0400 Subject: [PATCH] Use anonymous function for wrapping native classes --- lib/browser/api/app.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/browser/api/app.js b/lib/browser/api/app.js index d538e66e7e89..de417943eb5d 100644 --- a/lib/browser/api/app.js +++ b/lib/browser/api/app.js @@ -51,12 +51,10 @@ for (let name of events) { } // Wrappers for native classes. -const wrapDownloadItem = (downloadItem) => { +downloadItemBindings._setWrapDownloadItem((downloadItem) => { // downloadItem is an EventEmitter. Object.setPrototypeOf(downloadItem, EventEmitter.prototype) -} - -downloadItemBindings._setWrapDownloadItem(wrapDownloadItem) +}) // Only one App object pemitted. module.exports = app