1
Fork 0

typescript(translucid): oof

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-01-22 21:01:26 +02:00 committed by prescientmoon
parent 1e028a4567
commit 2d3fcc12b7
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
2 changed files with 2 additions and 2 deletions

View file

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

View file

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