Fix app.exit compatibility.

This commit is contained in:
Cheng Zhao 2014-04-10 17:07:39 +08:00
parent a16ea1fbf2
commit e576d4c014

View file

@ -29,7 +29,8 @@ if process.platform is 'darwin'
# Be compatible with old API.
app.once 'ready', -> app.emit 'finish-launching'
app.terminate = app.exit = app.quit
app.terminate = app.quit
app.exit = process.exit
# Only one App object pemitted.
module.exports = app