Add BIND_DONE event for process object

This commit is contained in:
Cheng Zhao 2014-10-25 23:21:17 +08:00
parent e110f5c37c
commit 24b4fcea15
3 changed files with 6 additions and 4 deletions

View file

@ -23,9 +23,8 @@ process.argv.splice startMark, endMark - startMark + 1
globalPaths = module.globalPaths
globalPaths.push path.join process.resourcesPath, 'atom', 'browser', 'api', 'lib'
# Do loading in next tick since we still need some initialize work before
# native bindings can work.
setImmediate ->
# Following operations need extra bindings by AtomBindings.
process.once 'BIND_DONE', ->
# Import common settings.
require path.resolve(__dirname, '..', '..', 'common', 'lib', 'init.js')