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); } }