Small fix with injection
This commit is contained in:
@@ -37,6 +37,13 @@ export const Injector = new class {
|
||||
|
||||
this.moduleObjs[this.rootInterface.name] = rootobj
|
||||
this.moduleObjs[target.name] = rootobj
|
||||
while(this.injectionQueue.length > 0){
|
||||
const i = this.injectionQueue.shift()
|
||||
if(this.moduleObjs[i.what.name])
|
||||
i.target[i.where] = this.moduleObjs[i.what.name]
|
||||
else
|
||||
this.injectionQueue.push()
|
||||
}
|
||||
this.injectionQueue.forEach(i => {
|
||||
i.target[i.where] = this.moduleObjs[i.what.name]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user