From 2d3fcc12b7f4afc3a4902835efe548b6f040630c Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Tue, 22 Jan 2019 21:01:26 +0200 Subject: [PATCH] typescript(translucid): oof 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 064f4cf..50c3605 100644 --- a/typescript/translucid/Translucid.js +++ b/typescript/translucid/Translucid.js @@ -24,7 +24,7 @@ class Translucid { const json = await read_1.read(path); const object = JSON.parse(json); for (let i in object) { - const classes = object.classes || []; + const classes = object[i].classes || []; this.bind(object[i].path, object[i].file, classes); } } diff --git a/typescript/translucid/Translucid.ts b/typescript/translucid/Translucid.ts index dfcd98a..6471697 100644 --- a/typescript/translucid/Translucid.ts +++ b/typescript/translucid/Translucid.ts @@ -29,7 +29,7 @@ class Translucid { const object = JSON.parse(json); for (let i in object){ - const classes = object.classes || []; + const classes = object[i].classes || []; this.bind(object[i].path,object[i].file,classes); } }