No more plan for ipc.sendSync in browser.

I want the browser to be fully asynchronous, so sending synchronous
messages from browser to renderer will be unacceptable.
This commit is contained in:
Cheng Zhao 2013-04-23 22:21:49 +08:00
parent 1b87a31940
commit f8899242c5
2 changed files with 1 additions and 8 deletions

View file

@ -5,11 +5,9 @@ class Ipc extends EventEmitter
constructor: ->
process.on 'ATOM_INTERNAL_MESSAGE', (args...) =>
@emit(args...)
process.on 'ATOM_INTERNAL_MESSAGE_SYNC', (args...) =>
@emit(args...)
send: (args...) ->
@sendChannel('message', args...)
ipc.send('ATOM_INTERNAL_MESSAGE', 'message', args...)
sendChannel: (args...) ->
ipc.send('ATOM_INTERNAL_MESSAGE', args...)