]> khamidou — GitHub mirrors - electron.git/commitdiff
No need to route via ATOM_INTERNAL_MESSAGE
authorCheng Zhao <zcbenz@gmail.com>
Tue, 27 Jan 2015 18:47:11 +0000 (10:47 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 27 Jan 2015 18:47:11 +0000 (10:47 -0800)
atom/browser/api/lib/web-contents.coffee
atom/renderer/api/lib/ipc.coffee

index 5217a7b386de0f87fe9a44d9a66e42383b99842a..cb772fd8c27e28b29ddf19954d7b3a6ee942e3cc 100644 (file)
@@ -9,8 +9,8 @@ module.exports.wrap = (webContents) ->
   webContents.__proto__ = EventEmitter.prototype
 
   # WebContents::send(channel, args..)
-  webContents.send = (args...) ->
-    @_send 'ATOM_INTERNAL_MESSAGE', [args...]
+  webContents.send = (channel, args...) ->
+    @_send channel, [args...]
 
   # Make sure webContents.executeJavaScript would run the code only when the
   # web contents has been loaded.
index 5215b2c5f2e8f19c8161a829af041293df85c959..1c508a3a549302abd6a36279267e922ef242d0a9 100644 (file)
@@ -4,9 +4,6 @@ v8Util  = process.atomBinding 'v8_util'
 # Created by init.coffee.
 ipc = v8Util.getHiddenValue global, 'ipc'
 
-ipc.on 'ATOM_INTERNAL_MESSAGE', (args...) ->
-  @emit args...
-
 ipc.send = (args...) ->
   binding.send 'ipc-message', [args...]