From 190a9f8e12ed8501f3ee796282008b462856ba51 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Tue, 22 Jan 2019 22:21:31 +0200 Subject: [PATCH] typescript(translucid): fixed undefined Signed-off-by: prescientmoon --- typescript/translucid/Translucid.js | 2 +- typescript/translucid/Translucid.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript/translucid/Translucid.js b/typescript/translucid/Translucid.js index 1bb5750..5ea99d6 100644 --- a/typescript/translucid/Translucid.js +++ b/typescript/translucid/Translucid.js @@ -25,7 +25,7 @@ class Translucid { const object = JSON.parse(json); for (let i in object) { const classes = object[i].classes || []; - const sendAsFiles = object[i].sendFiles; + const sendFiles = object[i].sendFiles; if (sendFiles != false) sendFiles = true; this.bind(i, object[i].file, classes, sendFiles); diff --git a/typescript/translucid/Translucid.ts b/typescript/translucid/Translucid.ts index 3fee2a9..2cb5110 100644 --- a/typescript/translucid/Translucid.ts +++ b/typescript/translucid/Translucid.ts @@ -30,7 +30,7 @@ class Translucid { for (let i in object){ const classes = object[i].classes || []; - const sendAsFiles = object[i].sendFiles; + const sendFiles = object[i].sendFiles; if (sendFiles != false) sendFiles = true; this.bind(i,object[i].file,classes,sendFiles); }