From 3e6e77119a0ace5bddd59b58338edd4fa866055c Mon Sep 17 00:00:00 2001 From: anika-ahluwalia Date: Tue, 9 Jun 2020 17:39:35 -0500 Subject: moving things around to find bug --- src/client/util/Scripting.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/client/util/Scripting.ts') diff --git a/src/client/util/Scripting.ts b/src/client/util/Scripting.ts index 237027c03..b34bf0406 100644 --- a/src/client/util/Scripting.ts +++ b/src/client/util/Scripting.ts @@ -57,23 +57,24 @@ export namespace Scripting { let n: any; let obj: any; + console.log("adding global"); + if (second !== undefined) { if (typeof first === "string") { + console.log("name first"); n = first; obj = second; } else { obj = [first]; obj.push(second); - if (third) { - //if (third.indexOf("(") > 0) { + if (third !== undefined) { obj.push(third); - //} else { - //n = third; - //} } - if (fourth) { + if (fourth !== undefined) { + console.log("WE SHOULD BE HERE"); n = fourth; } else { + console.log("HOW DID WE GET HERE"); n = first.name; } } -- cgit v1.2.3-70-g09d2