aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/Scripting.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/util/Scripting.ts')
-rw-r--r--src/client/util/Scripting.ts13
1 files changed, 7 insertions, 6 deletions
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;
}
}