From: Cheng Zhao Date: Tue, 27 Jan 2015 18:47:11 +0000 (-0800) Subject: No need to route via ATOM_INTERNAL_MESSAGE X-Git-Tag: v0.20.8~1^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=20431f4f2fb4b036d74ce86bf3785519595ef2d2;p=electron.git No need to route via ATOM_INTERNAL_MESSAGE --- diff --git a/atom/browser/api/lib/web-contents.coffee b/atom/browser/api/lib/web-contents.coffee index 5217a7b3..cb772fd8 100644 --- a/atom/browser/api/lib/web-contents.coffee +++ b/atom/browser/api/lib/web-contents.coffee @@ -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. diff --git a/atom/renderer/api/lib/ipc.coffee b/atom/renderer/api/lib/ipc.coffee index 5215b2c5..1c508a3a 100644 --- a/atom/renderer/api/lib/ipc.coffee +++ b/atom/renderer/api/lib/ipc.coffee @@ -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...]