typescript(translucid): i hate this bug
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
ec31174b1b
commit
3379d14686
|
@ -26,6 +26,7 @@ class Translucid {
|
|||
for (let i in object) {
|
||||
const classes = object[i].classes || [];
|
||||
this.bind(object[i].path, object[i].file, classes);
|
||||
console.log(`Binded room with name ${object[i].file} and path ${object[i].filepath} with classes ${classes}`);
|
||||
}
|
||||
}
|
||||
bind(path = "/", filepath = "", classes = []) {
|
||||
|
|
|
@ -31,6 +31,7 @@ class Translucid {
|
|||
for (let i in object){
|
||||
const classes = object[i].classes || [];
|
||||
this.bind(object[i].path,object[i].file,classes);
|
||||
console.log(`Binded room with name ${object[i].file} and path ${object[i].filepath} with classes ${classes}`)
|
||||
}
|
||||
}
|
||||
bind(path:string = "/", filepath:string = "", classes:Array<string> = []):void{
|
||||
|
|
Loading…
Reference in a new issue