Add atom-shell bindings before loading environment

This commit is contained in:
Cheng Zhao 2015-01-21 15:02:09 -08:00
parent 5e58915bdd
commit 7e33e26465
8 changed files with 74 additions and 94 deletions

View file

@ -86,12 +86,9 @@ if nodeIntegration in ['true', 'all', 'except-iframe', 'manual-enable-iframe']
window.addEventListener 'unload', ->
process.emit 'exit'
else
# There still some native initialization codes needs "process", delete the
# global reference after they are done.
process.once 'BIND_DONE', ->
delete global.process
delete global.setImmediate
delete global.clearImmediate
delete global.process
delete global.setImmediate
delete global.clearImmediate
# Load the script specfied by the "preload" attribute.
if preloadScript