From 6785870ddef7e364fb166239acf1b0a721afe5e9 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 28 Dec 2015 22:32:07 +0800 Subject: [PATCH] Variables are not shadowed in inline class --- atom/renderer/api/lib/remote.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/renderer/api/lib/remote.coffee b/atom/renderer/api/lib/remote.coffee index 88e5989..716d3be 100644 --- a/atom/renderer/api/lib/remote.coffee +++ b/atom/renderer/api/lib/remote.coffee @@ -65,8 +65,8 @@ metaToValue = (meta) -> return metaToValue obj else # Function call. - ret = ipcRenderer.sendSync 'ATOM_BROWSER_FUNCTION_CALL', meta.id, wrapArgs(arguments) - return metaToValue ret + obj = ipcRenderer.sendSync 'ATOM_BROWSER_FUNCTION_CALL', meta.id, wrapArgs(arguments) + return metaToValue obj else ret = v8Util.createObjectWithName meta.name -- 2.7.4