From: Cheng Zhao Date: Thu, 26 Nov 2015 05:57:48 +0000 (+0800) Subject: Fix compatibility with activate-with-no-open-windows event X-Git-Tag: v0.35.2~10^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=b0d4aa211df8778d97047268c3e86e576adc7d39;p=electron.git Fix compatibility with activate-with-no-open-windows event --- diff --git a/atom/browser/api/lib/app.coffee b/atom/browser/api/lib/app.coffee index a2fdb847..4d1803a0 100644 --- a/atom/browser/api/lib/app.coffee +++ b/atom/browser/api/lib/app.coffee @@ -54,7 +54,7 @@ deprecate.event app, 'finish-launching', 'ready', -> setImmediate => # give default app a chance to setup default menu. @emit 'finish-launching' deprecate.event app, 'activate-with-no-open-windows', 'activate', (event, hasVisibleWindows) -> - @emit 'activate-with-no-open-windows' if not hasVisibleWindows + @emit 'activate-with-no-open-windows', event if not hasVisibleWindows deprecate.event app, 'select-certificate', 'select-client-certificate' # Wrappers for native classes.