Simplify app api.

This commit is contained in:
Cheng Zhao 2014-04-17 17:13:46 +08:00
parent 7c50393c72
commit da483ba7f3
3 changed files with 87 additions and 165 deletions

View file

@ -2,10 +2,8 @@ EventEmitter = require('events').EventEmitter
bindings = process.atomBinding 'app'
Application = bindings.Application
Application::__proto__ = EventEmitter.prototype
app = new Application
app = bindings.app
app.__proto__ = EventEmitter.prototype
app.getHomeDir = ->
process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME']