Deprecate app.terminate API.

Users should use app.quit which can shutdown the application gracefuly.
This commit is contained in:
Cheng Zhao 2014-04-10 15:08:14 +08:00
parent 5ead4f655a
commit 538bd1116d
5 changed files with 4 additions and 17 deletions

View file

@ -27,8 +27,9 @@ if process.platform is 'darwin'
setBadge: bindings.dockSetBadgeText
getBadge: bindings.dockGetBadgeText
# Support old event name.
# Be compatible with old API.
app.once 'ready', -> app.emit 'finish-launching'
app.terminate = app.exit = app.quit
# Only one App object pemitted.
module.exports = app